[Freeciv-Dev] [bug #22519] Save game command crashes with invalid filenames

2014-08-26 Thread pepeto
Update of bug #22519 (project freeciv):

 Summary: Save game function unable to cope with special
characters (e.g. umlauts) = Save game command crashes with invalid filenames

___

Follow-up Comment #5:

 The game does not crash, it just quits the current game and
 returns to the start window (with Start new game, load game
 etc.)

This looks like a server crash.

 A ? or / in a savegame name causes the game to quit

After fast checking, when issuing the /save command, no check is done on the
filename. It seems that the characters :/\|?* are reserved on windows, this
may explain why the server crashes. See
http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247%28v=vs.85%29.aspx#naming_conventions

 Umlauts like äöüÄÖÜ do NOT cause a crash or quit but rather
 cause a box like [X] in the savegame name

That's sound another kind of missed charset conversion.

 Special characters !, # and  work just fine.

These character are not listed above.


___

Reply to this item at:

  http://gna.org/bugs/?22519

___
  Message posté via/par Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #22519] Save game command crashes with invalid filenames

2014-08-26 Thread Matthiasbasler
Follow-up Comment #6, bug #22519 (project freeciv):

 It seems that the characters :/|?* are reserved on windows, this may
explain why the server crashes.

Indeed they are.

It didn't occur to me that what I write as savegame titles results 1:1 as
filenames. Since obviously this is the case then using the above characters is
a no-go under windows and should ideally be rejected by FreeCiv under windows.
(Not sure if other OS's dislike such characters as well...)

Alternative idea is to escape such characters and have a transparent
encoding/decoding the way modern browsers handle it for URLs in the address
bar.

Thanks for the hint, pepeto!

___

Reply to this item at:

  http://gna.org/bugs/?22519

___
  Nachricht gesendet von/durch Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev