News:

Want to praise Simutrans?
Your feedback is important for us ;D.

[r8310] Unicode file path bug report

Started by HyperSim, October 22, 2017, 03:02:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

HyperSim

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.

DrSuperGood

It seems a few change directory calls were overlooked during the IO migration.

Try r8314 or later when it hits nightly.

Ters

Yes, there was disturbingly many of them scattered around the code.

HyperSim

It works correctly on r 8314 as long as I checked.  Thanks.

DrSuperGood

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.

Ters

That was why I originally put my stuff in a different file than simsys, but prissi did not like that I repurposed simio.