Maybe a little bug in Xboard 4.9.1
Moderator: Ras
-
- Posts: 28395
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: Maybe a little bug in Xboard 4.9.1
I pushed an attempt to cure this to my source repository at winboard.nl. This breaks a line at the first space after the input buffer is half full.
-
- Posts: 15
- Joined: Sat Aug 31, 2024 7:15 pm
- Full name: Christophe Jolly
Re: Maybe a little bug in Xboard 4.9.1
I have the same problem with my xboard 4.9.1 when I load a pgn file downloaded from the CCRL live viewer.OliverBr wrote: ↑Sat Sep 20, 2025 10:15 pm Hello together, hello @hgm, (How can I adress hgm in a forum post?)
I got a problem wit Xboard 4.9.1 (on Macosx) that I cannot load pgns, that have to many characters in one line.
E.g.: https://ccrl.live/pgns/The_Great_Kiwi_H ... el_2.0.pgn
I have to download and split them manually into a couple of lines.
If this a general issue, and if yes, maybe there could be a fix for it?
It would be very very kind!
Thank you.
Here is a sed command that format the pgn file into a one move per line pgn file:
sed -E 's/[0-9]+\. /\n&/g' input_file.pgn >output_file.pgn
Christophe
-
- Posts: 685
- Joined: Sat Jun 08, 2013 10:07 am
- Location: France
- Full name: Roland Chastain
Re: Maybe a little bug in Xboard 4.9.1
Thank you. There would be a small correction to do:
Code: Select all
parser.c: In function 'ReadLine':
parser.c:292:43: error: 'PARSEBUF' undeclared (first use in this function); did you mean 'PARSEBUFSIZE'?
292 | if(c == ' ' && inPtr - inputBuf > PARSEBUF/2) break; // break too-long lines
| ^~~~~~~~
| PARSEBUFSIZE
-
- Posts: 28395
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: Maybe a little bug in Xboard 4.9.1
Sorry.
I thought I had tested the patch by running "make", and that it compiled without errors. I must have done that before I actually saved the modified file from the editor.
Anyway, it should be fixed now.

Anyway, it should be fixed now.
-
- Posts: 27
- Joined: Sun Aug 15, 2021 12:22 am
- Full name: Dave Gomboc
Re: Maybe a little bug in Xboard 4.9.1
@hgm Hey, H.G., when you have a chance to reply to my personal email (from ~10 days ago), please also indicate whether these newest changes being discussed here should be or not be included in whatever level of permission you choose to provide. The sooner the issue in the email discussion gets resolved, the sooner I will be able to actually create a new point release for XBoard.