Non-english symbols in Windows username
-
- Gnoblar
- Posts: 6
- Joined: Mon Jan 25, 2016 8:39 am
Non-english symbols in Windows username
My windows account name is "Алекс" and path to my documents contents this string. The problem is Ogre can't work with such paths.
The simplest example - I can't run the samples. My program also does not run under this account. Root constructor can't undestand my paths. But if I login as "Alex" it works fine!
As far as I know this is old Ogre problem. How can I make Ogre works with paths with Russian, French, German and other symbols?
The simplest example - I can't run the samples. My program also does not run under this account. Root constructor can't undestand my paths. But if I login as "Alex" it works fine!
As far as I know this is old Ogre problem. How can I make Ogre works with paths with Russian, French, German and other symbols?
-
- Greenskin
- Posts: 140
- Joined: Sun Feb 03, 2013 6:32 pm
- x 8
Re: Non-english symbols in Windows username
Seems like a locale settings issue. Did you try calling below in the beginning of program?
See this and this.
Code: Select all
setlocale("LC_ALL", "C")
Check out my projects: https://github.com/NotCamelCase
-
- Gnoblar
- Posts: 6
- Joined: Mon Jan 25, 2016 8:39 am
Re: Non-english symbols in Windows username
Yes, of course. But this is not good solution.
For example, if I create new account with some non-english and non-russian (my default locale is russian) symbols this problem is here again! I understand this happens very rarely, but it is.
For example, if I create new account with some non-english and non-russian (my default locale is russian) symbols this problem is here again! I understand this happens very rarely, but it is.
-
- Minaton
- Posts: 933
- Joined: Mon Mar 05, 2012 11:37 am
- Location: Germany
- x 110
Re: Non-english symbols in Windows username
You could rebuild Ogre and replace std::string by std::wstring. It is a common (known) problem, that Ogre doesn't have support for unicode inside. Maybe it is a good time to add a "feature request" for unicode paths.
- Zonder
- Ogre Magi
- Posts: 1168
- Joined: Mon Aug 04, 2008 7:51 pm
- Location: Manchester - England
- x 73
Re: Non-english symbols in Windows username
Yes, maybe is should be addressed for v2.xTransporter wrote:You could rebuild Ogre and replace std::string by std::wstring. It is a common (known) problem, that Ogre doesn't have support for unicode inside. Maybe it is a good time to add a "feature request" for unicode paths.
There are 10 types of people in the world: Those who understand binary, and those who don't...
-
- Gnoblar
- Posts: 6
- Joined: Mon Jan 25, 2016 8:39 am
Re: Non-english symbols in Windows username
Transporter wrote:You could rebuild Ogre and replace std::string by std::wstring.
Can you tell me a little more?
-
- Minaton
- Posts: 933
- Joined: Mon Mar 05, 2012 11:37 am
- Location: Germany
- x 110
Re: Non-english symbols in Windows username
See: http://stackoverflow.com/a/402918Ixuss_MyGUI wrote:Can you tell me a little more?
-
- Gnoblar
- Posts: 6
- Joined: Mon Jan 25, 2016 8:39 am
Re: Non-english symbols in Windows username
I mean how can I rebuild Ogre with replacing std::string by std::wstring?
-
- Gnoblar
- Posts: 6
- Joined: Mon Jan 25, 2016 8:39 am
Re: Non-english symbols in Windows username
Anybody made it already?
-
- Minaton
- Posts: 933
- Joined: Mon Mar 05, 2012 11:37 am
- Location: Germany
- x 110
Re: Non-english symbols in Windows username
Not yet.Ixuss_MyGUI wrote:Anybody made it already?
-
- Gnoblar
- Posts: 6
- Joined: Mon Jan 25, 2016 8:39 am