Re: issue saving a game
Antonio Ceballos <[email protected]> Wed, 7 Oct 2020 00:27:17 +0200
| Newsgroups | gmane.comp.gnu.chess.bugs |
|---|---|
| Message-ID | <CAO7R9g94CW-Mz=cM39Ym4KYAK0e4KXLe=Ut25A+U-Di6=5ptHg@mail.gmail.com> |
--000000000000aff79205b1081a22 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, I have been unable to reproduce the problem on version 6.2.7. I don't understand where the two-line date heading of your ARCHIVO comes from, as pgnsave does not write anything before [Event ""]. Do you have any clue? By the way, had you invoked pgnload beforehands? As Simon said, PGNSaveToFile is suspicious of doing something wrong. I am changing a little bit the way the y/n user input is processed in case a file overwrite is detected, but this is unlikely to be related to your problem. Anyway, did it occur in such a situation, or the file just didn't exist prior to your call to pgnsave? Regards, Antonio On Wed, Sep 30, 2020 at 6:22 PM victorhck <[email protected]> wrote: > Hello. > > Don't know if it's a bug or maybe I'm doing something wrong when I save > a game. > > I run gnuchess and doing some moves. If I run show game, I can see the > moves. But if I run pgnsave that only saves the last move, so after I > can't load. > > running show game after some moves: > > @Blancas (4) : show game > White Black > 1. d3 Nc6 > 2. e4 Nf6 > 3. a4 e5 > > Then I save the game in a file, and if I run a cat to that file this is > what I get: > > $> cat ARCHIVO > mi=C3=A9 30= sep > 2020 18:06:27 > [Event ""] > [Site ""] > [Date "2020.09.30"] > [Round ""] > [White ""] > [Black "GNU Chess 6.2.7"] > [WhiteELO "0"] > [BlackELO "0"] > [Result ""] > > e5 > > > nothing more! > I miss something? Running openSUSE Tumbleweed and I've installed > gnuchess from repositories. > > Thanks for your work! Greetings > > > PS: Maybe would be a good idea to change "pgnsave" and "pgnload" to > "save" and "load" :) > > -- > ------------------- > GPG Key: 0xcc742e8dc9b7e22a > Fingerprint =3D 6FE2 3B1F AAC8 E5B7 63EA 88A9 CC74 2E8D C9B7 E22A > > Aprende a proteger la privacidad de tu correo: > https://emailselfdefense.fsf.org/es/ > > Mi blog sobre openSUSE, GNU/Linux y software libre: > https://victorhckinthefreeworld.com/ > > Herramientas para proteger tu privacidad > https://victorhck.gitlab.io/privacytools-es/ > > > --000000000000aff79205b1081a22 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon= t-size:small">Hello,</div><div class=3D"gmail_default" style=3D"font-size:s= mall"><br></div>I have been unable to reproduce the problem<span class=3D"g= mail_default" style=3D"font-size:small"> on version 6.2.7</span>. <br></div= ><div dir=3D"ltr"><br></div><div dir=3D"ltr"><span class=3D"gmail_default" = style=3D"font-size:small"></span>I don't understand wh<span class=3D"gm= ail_default" style=3D"font-size:small">ere the two-line date heading</span>= of your ARCHIVO <br></div><div><span class=3D"gmail_default" style=3D"font= -size:small">comes from, as pgnsave does not write anything before [Event &= quot;"]. Do</span></div><div><span class=3D"gmail_default" style=3D"fo= nt-size:small">you have any clue? By the way, had you invoked pgnload befor= ehands?<br></span></div><div><span class=3D"gmail_default" style=3D"font-si= ze:small"><br></span></div><div><span class=3D"gmail_default" style=3D"font= -size:small"></span><span class=3D"gmail_default" style=3D"font-size:small"= >As Simon said, PGNSaveToFile is suspicious of doing something wrong.</span= ></div><div><span class=3D"gmail_default" style=3D"font-size:small">I am ch= anging a little bit the way the y/n user input is processed in case a <br><= /span></div><div><span class=3D"gmail_default" style=3D"font-size:small">fi= le overwrite is detected, but this is unlikely to be related to your proble= m.</span></div><div><span class=3D"gmail_default" style=3D"font-size:small"= > Anyway, did it occur in such a situation, or the file just didn't exi= st prior to <br></span></div><div><span class=3D"gmail_default" style=3D"fo= nt-size:small">your call to pgnsave?</span></div><div><span class=3D"gmail_= default" style=3D"font-size:small"><br></span></div><div><span class=3D"gma= il_default" style=3D"font-size:small">Regards,</span></div><div><span class= =3D"gmail_default" style=3D"font-size:small">Antonio</span></div><div><span= class=3D"gmail_default" style=3D"font-size:small"></span><span class=3D"gm= ail_default" style=3D"font-size:small"></span><br></div><br><div class=3D"g= mail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Sep 30, 2020 at 6= :22 PM victorhck <<a href=3D"mailto:[email protected]">victorhck@mai= lbox.org</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D= "margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-le= ft:1ex">Hello.<br> <br> Don't know if it's a bug or maybe I'm doing something wrong whe= n I save<br> a game.<br> <br> I run gnuchess and doing some moves. If I run show game, I can see the<br> moves. But if I run pgnsave that only saves the last move, so after I<br> can't load.<br> <br> running show game after some moves:<br> <br> @Blancas (4) : show game<br> =C2=A0 =C2=A0 =C2=A0 White=C2=A0 =C2=A0Black<br> =C2=A0 1.=C2=A0 d3=C2=A0 =C2=A0 =C2=A0 Nc6<br> =C2=A0 2.=C2=A0 e4=C2=A0 =C2=A0 =C2=A0 Nf6<br> =C2=A0 3.=C2=A0 a4=C2=A0 =C2=A0 =C2=A0 e5<br> <br> Then I save the game in a file, and if I run a cat to that file this is<br> what I get:<br> <br> $> cat ARCHIVO<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 mi=C3= =A9 30 sep<br> 2020 18:06:27<br> [Event ""]<br> [Site ""]<br> [Date "2020.09.30"]<br> [Round ""]<br> [White ""]<br> [Black "GNU Chess 6.2.7"]<br> [WhiteELO "0"]<br> [BlackELO "0"]<br> [Result ""]<br> <br> e5<br> <br> <br> nothing more!<br> I miss something? Running openSUSE Tumbleweed and I've installed<br> gnuchess from repositories.<br> <br> Thanks for your work! Greetings<br> <br> <br> PS: Maybe would be a good idea to change "pgnsave" and "pgnl= oad" to<br> "save" and "load" :)<br> <br> -- <br> -------------------<br> GPG Key: 0xcc742e8dc9b7e22a<br> Fingerprint =3D 6FE2 3B1F AAC8 E5B7 63EA 88A9 CC74 2E8D C9B7 E22A<br> <br> Aprende a proteger la privacidad de tu correo:<br> <a href=3D"https://emailselfdefense.fsf.org/es/" rel=3D"noreferrer" target= =3D"_blank">https://emailselfdefense.fsf.org/es/</a><br> <br> Mi blog sobre openSUSE, GNU/Linux y software libre:<br> <a href=3D"https://victorhckinthefreeworld.com/" rel=3D"noreferrer" target= =3D"_blank">https://victorhckinthefreeworld.com/</a><br> <br> Herramientas para proteger tu privacidad<br> <a href=3D"https://victorhck.gitlab.io/privacytools-es/" rel=3D"noreferrer"= target=3D"_blank">https://victorhck.gitlab.io/privacytools-es/</a><br> <br> <br> </blockquote></div></div> --000000000000aff79205b1081a22--