After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 492621 - Unable to load PGN files with carriage return (/r)
Unable to load PGN files with carriage return (/r)
Status: RESOLVED FIXED
Product: gnome-games-superseded
Classification: Deprecated
Component: glchess
2.20.x
Other All
: Normal normal
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
Depends on:
Blocks:
 
 
Reported: 2007-11-02 08:59 UTC by Hans de Goede
Modified: 2007-11-03 06:10 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20



Description Hans de Goede 2007-11-02 08:59:54 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
Comment 1 Robert Ancell 2007-11-03 06:10:17 UTC
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