[PATCH 0/7] Fix broken file paths on Win32

Dirk Hohndel dirk at hohndel.org
Thu Dec 19 09:58:02 UTC 2013


On Thu, 2013-12-19 at 19:47 +0200, Lubomir I. Ivanov wrote:
> On 19 December 2013 19:17, Thiago Macieira <thiago at macieira.org> wrote:
> > On quinta-feira, 19 de dezembro de 2013 07:35:13, Dirk Hohndel wrote:
> >> I think we should make that assumption. MS by default ensures that, so
> >> someone would have to do a custom install and intentionally move the
> >> system dir to C:\Üßßö°\ - they get what they deserve.
> >
> > The default temp path is C:\Users\<userid>\Application Data or something.
> >
> 
> Qt seems to return c:\windows\temp in our webservices code.
> which is fine of course and is portable back to the win95/98 days.
> 
> it's actually much safer that using something like:
> c:\users\<name>\appdata\local\temp
> 
> because it's more unlikely to see someone renaming c:\windows\ to be
> something like c:\уиндоус\
> but i've seen renames there as well...
> 
> > Does anyone know if "C:\Users" gets translated these days? "Program Files"
> > used to be translated in older Windows.
> >
> 
> i think that everything can be translated (even automatically on OS
> install) and is stored in env.variables that should be then accessed
> with _wgetenv()
> also users can definitely create a group/login names with special
> characters UTF-16.
> 
> they only seem to disallow some special characters, but i don't see
> notes for language tables and such:
> http://technet.microsoft.com/en-us/library/cc722458.aspx
> 
> overall, i don't have much experience with non-US paths and all the
> systemdirs getting translated, but i'm *definitely* sure of eventual
> issues.

Aren't you running your Windows in Bulgarian? I run my Windows VM in
German because the only time I ever use it is to test Subsurface issues
these days :-)

> a quick google shows that:
> users can even report a MS program having issues with a cyrillic user name:
> http://answers.microsoft.com/en-us/windows/forum/windows_7-security/cyrillic-user-account-names-cause-windows-live/4890354f-fd54-4aa4-a0f9-eb3454a4b5a3
> 
> an msysgit issue with cyrillic username:
> https://groups.google.com/forum/#!topic/msysgit/D1EoSBxtGaY

L18n for the win.

/D



More information about the subsurface mailing list