From: Douglas G. D. <dan...@gr...> - 2010-04-19 22:22:27
|
In the language I use (Component Pascal) the CHAR is 16 bits. If one wants only 8 bits then one must specify SHORTCHAR. Very easy. Manuel Martín wrote: > Hello again. > > Because of this is a world (software) that is quickly changing, I > believe some "utopia" may come true. With so many idioms, Unicode is a > must. I believe the future is UTF-8. Also, time to time, I share some > code. UTF-8 makes it ease to share. Everything in UTF-8 is my utopia. > That's why I write my code in that encoding. > By now, MSWindows uses UTF-16 :( > > I must confess all of this began when I updated from wxWidgets 2.8 to > 2.9. The main difference between them is that internally only Unicode > strings are used. When I have re-read its new doc's, now I find it's > clearly advised _not_ to use sources with encoding different from the > current locale encoding. > > wx_2.8 worked something like this: > //test encoding > #define _UNICODE > #include <windows.h> > #include <tchar.h> > int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, > LPSTR lpCmdLine, int nCmdShow) > { > ::MessageBoxW(NULL, _T("Adiós"), L"MyTextBox", MB_OK); > return 0; > } > > This way, literals in .exe are wchar_t, I mean, two-bytes encoded, UTF-16. > But in wx 2.9 things have changed. > > Now I must seat down and think about changing all my literals to wide > strings, change them to UTF-7 and make use of catalog .mo files even for > my own language (Spanish), or figure out a hack that allows me continue > writing in "good and readable Spanish", not L"Adi\xf3s". > > Thanks > Manolo > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > MinGW-users mailing list > Min...@li... > > This list observes the Etiquette found at > http://www.mingw.org/Mailing_Lists. > We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. > > _______________________________________________ > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > > |