The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: HyperSim on October 22, 2017, 03:02:30 AM

Title: [r8310] Unicode file path bug report
Post by: HyperSim on October 22, 2017, 03:02:30 AM
Hello, everyone.

Unicode file path patch is amazing and will help many player in Japan and other Asia country.
I tried it but I found some bug in Nightly build r8310.
If I put "simutrans" folder in the path with 2byte characters (for example "D:\ゲーム("Game" in Japanese)\simutrans\simutrans.exe"), I can, just in case, start simutrans but nothing is displayed!!
I think that font file was not loaded correctly because I cannot select Japanese, Chinese and so on, which use 2byte characters for its font.
Title: Re: [r8310] Unicode file path bug report
Post by: DrSuperGood on October 22, 2017, 05:15:38 AM
It seems a few change directory calls were overlooked during the IO migration.

Try r8314 or later when it hits nightly.
Title: Re: [r8310] Unicode file path bug report
Post by: Ters on October 22, 2017, 08:46:16 AM
Yes, there was disturbingly many of them scattered around the code.
Title: Re: [r8310] Unicode file path bug report
Post by: HyperSim on October 22, 2017, 10:44:04 AM
It works correctly on r 8314 as long as I checked.  Thanks.
Title: Re: [r8310] Unicode file path bug report
Post by: DrSuperGood on October 22, 2017, 03:16:15 PM
Not all the fopen calls have been changed, and cannot currently until makeobj uses simsys or the API is ported to a separate header. It still works mostly because the working directory is changed past all the non ASCII folder names and so it only has to open an ASCII folder name. It will still break if the file to be opened needs Unicode or the multi-byte code page loaded does not support ASCII.
Title: Re: [r8310] Unicode file path bug report
Post by: Ters on October 22, 2017, 05:33:27 PM
That was why I originally put my stuff in a different file than simsys, but prissi did not like that I repurposed simio.