OpenTTD

Tasklist

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
Type Bug
Category Core
Status Closed
Assigned To No-one
Operating System Linux
Severity Low
Priority Normal
Reported Version 0.5.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When 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.
Comment by Remko Bijker (Rubidium) - Saturday, 28 April 2007, 09:52 GMT
I cannot reproduce this bug on my linux installation.

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.
Comment by coincoin (coincoin) - Saturday, 28 April 2007, 10:33 GMT
The filename cannot be shown in the load window.
Comment by Remko Bijker (Rubidium) - Saturday, 28 April 2007, 10:47 GMT
What file system are you using?
Comment by coincoin (coincoin) - Saturday, 28 April 2007, 11:18 GMT
ext3.
I tried to create a filename with an UTF-8 name and it works, it's displayed with ls.
Comment by Remko Bijker (Rubidium) - Saturday, 28 April 2007, 11:19 GMT
Does it happen when you run openttd from the console, if so, what does `locale` tell?
Comment by coincoin (coincoin) - Saturday, 28 April 2007, 12:15 GMT
Using en_US@utf-8 locale, it works.
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
Comment by Remko Bijker (Rubidium) - Saturday, 28 April 2007, 20:46 GMT
hmm, iconv... are you running OSX?
If not, then iconv is not needed; please try to reconfigure (and recompile) with --without-iconv as paramater to configure.
Comment by coincoin (coincoin) - Sunday, 29 April 2007, 12:59 GMT
I'm using a gentoo linux.

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.
Comment by maedhros (maedhros) - Sunday, 29 April 2007, 16:17 GMT
I've filed a bug report with Gentoo about it: http://bugs.gentoo.org/176474
Comment by Remko Bijker (Rubidium) - Monday, 30 April 2007, 20:47 GMT
This seems to be a 'bug' in Gentoo's ebuild, because linux does not need (or rather breaks) when iconv is used.

This is already fixed in trunk, but it is (almost) impossible to backport this 'fix' because trunk's Makefile/configure system is totally different.

Loading...