Ini files in wrong directory (because of Polish letter?)

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

browny
Senior Member
Senior Member
Posts: 288
Joined: 2007-09-10, 13:19 UTC

Re: Ini files in wrong directory (because of Polish letter?)

Post by *browny »

ghisler(Author) wrote: 2020-03-12, 10:20 UTC Indeed INI files cannot have Unicode names because the functions to read from ANSI INI files expects an ANSI name for the ini file too.
It seems that GetPrivateProfileStringW with UNICODE parameters properly reads ANSI files.
That is another relic, but at least it could not be turned off.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Ini files in wrong directory (because of Polish letter?)

Post by *ghisler(Author) »

If TC dir, or the ini files have 8.3 short aliases, could the ANSI functions access TC dir and ini files by their 8.3 names? Or such functions need the rewriting for adding this Unicode name->8.3 name fallback?
In principle, yes - I but I would have to adjust a lot of functions to make it work. It's not really needed when you can choose an install directory with ANSI name from your codepage.
It seems that GetPrivateProfileStringW with UNICODE parameters properly reads ANSI files.
That is another relic, but at least it could not be turned off.
Reading in general should work fine, but writing will cause problems when trying to save Unicode names, which TC stores as UTF-8 with BOM in ANSI files.
Author of Total Commander
https://www.ghisler.com
Post Reply