Re: [CrystalSpace] #932: GLWXDriver is broken
"CrystalSpace" <[email protected]>
| Newsgroups | gmane.comp.graphics.crystalspace.tracker |
|---|---|
| Message-ID | <[email protected]> |
#932: GLWXDriver is broken
---------------------------+------------------------------------------------
Reporter: weltall | Owner: admin
Type: defect | Status: new
Priority: major | Milestone:
Component: other plugins | Version: V2.1
Keywords: |
---------------------------+------------------------------------------------
Comment(by res):
From WX docs:
{{{
wxString(const char* psz, wxMBConv& conv, size_t nLength =
wxSTRING_MAXLEN)
Initializes the string from first nLength characters of C string. The
default value of wxSTRING_MAXLEN means take all the string. In Unicode
build, conv's MB2WC method is called to convert psz to wide string. It is
ignored in ANSI build.
}}}
So in WX ANSI builds, the “conv” arg is ignored, meaning the string is
interpreted as a string in the locale's code page. not UTF-8 (i.e. it
will be garbled). wxString::FromUTF8() OTOH unambiguously interprets
it's input as UTF-8.
So that function is only available from WX 2.8.4 onwards – considering
that I'd rather raise the minimal required WX version (WX 2.8.4 was
released in two thousand and *seven*).
--
Ticket URL: <http://www.crystalspace3d.org/trac/CS/ticket/932#comment:3>
CrystalSpace <http://www.crystalspace3d.org/>
Free open-source 3D SDK.
------------------------------------------------------------------------------
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.
But none more important than the need to reduce IT complexity
while improving strategic productivity. Learn More!
http://www.accelacomm.com/jaw/sdnl/114/51507609/
_______________________________________________
crystal-tracker mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-tracker