The International Simutrans Forum

 

Author Topic: [r8310] Unicode file path bug report  (Read 1891 times)

0 Members and 1 Guest are viewing this topic.

Offline HyperSim

  • *
  • Posts: 102
  • Languages: EN, JP
[r8310] Unicode file path bug report
« 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.

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2496
  • Languages: EN
Re: [r8310] Unicode file path bug report
« Reply #1 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.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5316
  • Languages: EN, NO
Re: [r8310] Unicode file path bug report
« Reply #2 on: October 22, 2017, 08:46:16 AM »
Yes, there was disturbingly many of them scattered around the code.

Offline HyperSim

  • *
  • Posts: 102
  • Languages: EN, JP
Re: [r8310] Unicode file path bug report
« Reply #3 on: October 22, 2017, 10:44:04 AM »
It works correctly on r 8314 as long as I checked.  Thanks.

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2496
  • Languages: EN
Re: [r8310] Unicode file path bug report
« Reply #4 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.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5316
  • Languages: EN, NO
Re: [r8310] Unicode file path bug report
« Reply #5 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.