Michael Wetherell
914955aaa0
Use wxMBConvUTF8 when G_FILENAME_ENCODING is UTF-8, and set
...
G_FILENAME_ENCODING to match the locale encoding when necessary
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33231 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-01 00:00:08 +00:00
Michael Wetherell
cdb14ecbe7
Fix for decoding of utf-16 surrogates. Also remove #include that's not needed
...
after all.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-30 22:00:19 +00:00
Robert Roebling
66bf009984
Made wxConvBrokenFileNames public.
...
Made use of it from GTK+'s wxApp.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-29 23:15:54 +00:00
Włodzimierz Skiba
b2c13097de
Warning fixes after recent library changes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-29 17:36:00 +00:00
Vadim Zeitlin
c12b7f79a7
respect G_FILENAME_ENCODING in wxConvBrokenFileName and also use UTF-8 instead ASCII
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-28 00:16:37 +00:00
Vadim Zeitlin
44d12026b8
use wxLocale::GetSystemEncoding() to test whetehr we want to use UTF-8 in wxConvBrokenFileNames::UseUTF8()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-27 22:43:56 +00:00
Vadim Zeitlin
3698ae7195
fixed compilation in non-Unicode build; fixed bug with buffer overrun in wxMBConvUTF8::MB2WC()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-27 22:20:44 +00:00
Robert Roebling
ea8ce907e1
Submit patch based on Michael W.'s invalid UTF8
...
to PUA patch. I added UTF8_TO_OCTAL and made
that the default for filename conversion uner
GTK2. More adapation, e.g. to G_FILENAME_ENCODING
need to be done.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-27 17:23:15 +00:00
Robert Roebling
e1bfe89eee
Commit empty wxConvBrokenFileNames
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-26 12:14:40 +00:00
David Elliott
267e11c550
Use wxFontMapperBase::Get instead of wxFontMapper::Get from wxBase code.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-26 06:51:56 +00:00
Stefan Csomor
5c3c8676d6
add the mac specific encodings correctly
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-25 17:31:38 +00:00
Vadim Zeitlin
f5a1953b34
added wxConvFileName which is a variable, not define as wxConvFile; added comments explaining what different wxConvXXXs are for
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-24 00:59:08 +00:00
Ryan Norton
a6900d1083
use on cocoa without fontmapper
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-20 08:45:29 +00:00
Ryan Norton
2d1659cf32
Enable compilation on mac without wxFontMapper
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-17 10:38:45 +00:00
Vadim Zeitlin
667e5b3e05
MultiByteToWideChar(CP_UTF7, MB_ERR_INVALID_CHARS, ...) fails, so don't use MB_ERR_INVALID_CHARS for UTF7 for now (even if it means that ill-formed UTF7 is not detected)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-31 01:13:04 +00:00
Václav Slavík
c643a97740
fixed wxEncodingConverter-base wxCSConv to report failures as expected
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-16 11:58:56 +00:00
Václav Slavík
b1d547ebc5
made wxMBConv_iconv MT-safe
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-14 10:52:17 +00:00
Włodzimierz Skiba
6356d52a67
Unfortunatelly compiler does not know which bits play here and still warns about loosing them.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-08 19:34:45 +00:00
Ryan Norton
79c78d4284
correct to int32 for range comparison
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-08 00:34:51 +00:00
Ryan Norton
f5fb687186
final cleanup of string conversion with null characters (hopefully :))
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-06 08:23:50 +00:00
Ryan Norton
6e394fc623
cast fix, workaround for pickeir compilers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-05 16:33:47 +00:00
Stefan Csomor
c543817b32
wxMax instead of max, former is always around
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-02 09:36:13 +00:00
Stefan Csomor
db696b6238
correcting allocated buffer size
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30239 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-02 09:03:35 +00:00
Jouk Jansen
7c8fad40bf
Committing in .
...
Patches for OpenVMS
Modified Files:
wxWidgets/src/common/descrip.mms
wxWidgets/src/common/strconv.cpp
----------------------------------------------------------------------
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-02 08:31:08 +00:00
Ryan Norton
638357a03e
rewrite core foundation conversion to be efficient, double-pass mac WC2MB to verify that there were no invalid characters converted, set amount of memory to allocate to 32 for mac conversion to prevent needless large buffer allocations
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-01 18:03:04 +00:00
Ryan Norton
fd5e476dbb
note broken code, cast hack to fix warning on pickier compilers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-31 06:23:16 +00:00
Ryan Norton
e4e3bbb447
solution to wxMBConv stuff - make a seperate XX2XX for strings of a specified length, use this in wxString instead of previous worst-case method
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30186 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-30 20:16:25 +00:00
Ryan Norton
15f2ee3270
[ 1054664 ] Implementation of wxMBConvUTF7 (Heavily modified in places), utf7 unit tests change
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-29 22:10:26 +00:00
Ryan Norton
03ff8fda8d
Add wxString::WorstEncodingCase, other various cleanups
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-29 21:06:28 +00:00
Ryan Norton
854451e2f8
have wxbuiltin wxmbconvutf7 return -1 (error) not 0. Some cleanups in string.cpp. Add some unit tests for utf7 and cleanups.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-29 11:13:41 +00:00
Ryan Norton
72606b430e
increase worst case for UTF8 to *4
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 23:05:47 +00:00
Włodzimierz Skiba
2c53a80a09
Reverted due to Darwin conflict.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-12 20:47:04 +00:00
Włodzimierz Skiba
ecd9653bf3
Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-12 19:29:12 +00:00
Ryan Norton
f7e98dee7e
cocoa doesn't need system framework - string conversion for cocoa - focus for cocoa - a bit of change for string unit tests for new functionality
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-11 02:02:30 +00:00
Włodzimierz Skiba
907173e51d
Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-06 20:21:57 +00:00
Włodzimierz Skiba
d775fa8235
Source cleaning: whitespaces, tabs, -1/wxID_ANY/wxNOT_FOUND/wxDefaultCoord, TRUE/true, FALSE/false.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-22 14:38:52 +00:00
Vadim Zeitlin
02272c9c3e
default MB -> WC conversion under Win32 now fails if it encounters invalid MB chars; this is more iconv-compatible and fixes wxTextInputStream::NextChar()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-11 18:47:13 +00:00
Stefan Csomor
f81f59012d
metrowerks is not implementing the mb calls in libc correctly (always needs correct length param), so we switch to our own conversion code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-24 19:30:13 +00:00
Julian Smart
655719367a
Use old licence name
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e
Name and version changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Włodzimierz Skiba
7608a6837f
Limited setup.h shouldn't break building. Helpful in bringing new ports.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-18 12:29:55 +00:00
Václav Slavík
635f33cedd
fixed wxMBConv::cMB2WC and cWC2MB to check for conversion failure
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-11 09:47:31 +00:00
Stefan Csomor
8471ea9033
fix for always terminating intermediate UniChar String for 4 bytes wchar_t
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-07 16:45:38 +00:00
Stefan Csomor
4227afa4f7
byte length for interim UniChar String corrected
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-07 14:54:21 +00:00
Stefan Csomor
f3a355ceb3
added conversions via UniChar for wchar = 4 bytes versions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-03 09:24:02 +00:00
Vadim Zeitlin
13dd924a3f
fail WC2MB conversion in wxCSConv if we can't be sure that we don't lose information
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-15 15:44:07 +00:00
Stefan Csomor
5c250a1033
corrections for buffers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-08 09:53:50 +00:00
Stefan Csomor
8057c6d68f
moved system-fontencoding conversions to fontutil.cpp
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-22 18:41:58 +00:00
Stefan Csomor
335d31e007
string conversion implemented for mac
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-20 18:20:44 +00:00
Václav Slavík
4d312c222e
fixed wxConvLocal to work with C locale (and probably some others)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-09 12:27:42 +00:00