FS#725 - Saving bug
Attached to Project:
OpenTTD
Opened by coincoin (coincoin) - Sunday, 08 April 2007, 21:00 GMT
Last edited by Patric Stout (TrueBrain) - Saturday, 28 April 2007, 10:11 GMT
Opened by coincoin (coincoin) - Sunday, 08 April 2007, 21:00 GMT
Last edited by Patric Stout (TrueBrain) - Saturday, 28 April 2007, 10:11 GMT
|
DetailsWhen saving games, if the name contains some accents (é, è ...), the file is created truncated to the letter before the accented letter.
exemple: Orléans transport.sav => Orl |
This task depends upon
Closed by Remko Bijker (Rubidium)
Monday, 30 April 2007, 20:49 GMT
Reason for closing: Not a bug
Additional comments about closing: (Or "Not our bug")
iconv must not be used under Linux and Gentoo apparantly forces you to do so, which breaks OpenTTD.
Monday, 30 April 2007, 20:49 GMT
Reason for closing: Not a bug
Additional comments about closing: (Or "Not our bug")
iconv must not be used under Linux and Gentoo apparantly forces you to do so, which breaks OpenTTD.

The name is just passed at UTF-8 string into the file system, so it *should* just work alright. Is the filename shown correctly in the load window? If that's the case the application you use to check the files in the directory doesn't handle UTF-8 properly.
I tried to create a filename with an UTF-8 name and it works, it's displayed with ls.
Using en_US, fr_FR, fr_FR@euro, C locales, it bugs saying :
dbg: [Iconv] Error converting 'Non nommé, 1er Jan 1951éé.sav'. Errno 84
when trying to list the directory and :
dbg: [Iconv] Error converting '/home/chammm/.openttd/save/Non nommé, 1er Jan 1951éééééé.sav'. Errno 84
when saving
If not, then iconv is not needed; please try to reconfigure (and recompile) with --without-iconv as paramater to configure.
It's working for all locales without iconv.
If there is no need for iconv on a linux, perhaps the "unicode" flag (which activates iconv) should be removed from the gentoo ebuild.
This is already fixed in trunk, but it is (almost) impossible to backport this 'fix' because trunk's Makefile/configure system is totally different.