Home » U++ Library support » FileSel&FileList, Path » Codepage problem in FileSel directory selection droplist
Codepage problem in FileSel directory selection droplist [message #23251] |
Mon, 05 October 2009 12:28  |
Tom1
Messages: 1301 Registered: March 2007
|
Ultimate Contributor |
|
|
Hi,
I encountered a strange problem with the directory selection droplist of the FileSel dialog: The first entry is the home directory and is filled with dir.Add(GetHomeDirectory());. In the directory name a character 'á' gets replaced by another character (German double S) when the application executable is started stand-alone, but when started with Ctrl+F5 from TheIDE, there is no problem.
To figure out what's going on, I changed the GetHomeDirectory functionality in App.cpp by changing GetEnv() as follows:
String GetEnv(const char *id)
{
// return FromOEMCharset(getenv(id));
return FromSystemCharset(getenv(id));
}
What happened was, the character 'á' disappeared altogether when running the application from TheIDE, but was now correctly presented when the application was started as standalone.
Any idea what's going on here?
// Tom
[UPDATE: This is under Windows Vista x64 and the problem when running the application standalone was detected with 32 bit Windows XP, so they seem to have the same behavior.]
[Updated on: Mon, 05 October 2009 12:32] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat Apr 26 21:53:15 CEST 2025
Total time taken to generate the page: 0.01891 seconds
|