GNOME Bugzilla – Bug 492621
Unable to load PGN files with carriage return (/r)
Last modified: 2007-11-03 06:10:17 UTC
Please describe the problem: I'm one of the Fedora maintainers of gnome-games, today we received the following bug-report: Chess can't load this file: http://www.pgnmentor.com/players/Tal.zip when unzipped to a single file, or other similar files from other locations. Steps to reproduce: 1. wget http://www.pgnmentor.com/players/Tal.zip 2. unzip ... 3. In Chess, file/open/ choose the file Actual results: "chess" can't open the file, it complains "unknown character '..' where the two dots represent two characters I can't type on this keyboard. Reportedly http://jorton.fedorapeople.org/eboard/ can open the game. Expected results: To be able to open the file and do something sensible, ideally choose & view games and maintain some history of games seen. Does this happen every time? Yes Other information: Downstream bugreport is here: https://bugzilla.redhat.com/show_bug.cgi?id=363231 glchess 2.20.1
There are two issues here: 1. The failing to load the PGN file, this is due to the file containing a carriage return character (\r). This is a regression that was introduced in 2.20.1. It is fixed on the head (see src/lib/chess/pgn.py PGNParser.__init__). 2. glChess only supports loading the first game in a PGN file. I've opened bug 492930 as a feature request