Commit Graph

180 Commits

Author SHA1 Message Date
Vadim Zeitlin
04a378342d detect some invalid UTF7 strings when decoding them in wxMBConvUTF7
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 20:04:07 +00:00
Vadim Zeitlin
53c174fcd5 really pass the proper output buffer size in wxMBConv_win32 round trip check, at least for the encodings without NULs such as UTF7
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 17:40:17 +00:00
Vadim Zeitlin
2f96d9bb8d pass proper output buffer size in round trip conversion success check in wxMBConv_win32, otherwise conversions from UTF-7 always failed for example
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 17:34:48 +00:00
Włodzimierz Skiba
8942f83aca wxWinCE build fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-06 23:58:27 +00:00
Václav Slavík
8902898054 fixed win32 code to not use MB_ERR_INVALID_CHARS on win version where it isn't available; roundtrip check is used instead
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-06 17:36:36 +00:00
Vadim Zeitlin
e4277538a5 set m_encoding in wxCSConv ctor from name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-09 14:58:08 +00:00
Julian Smart
3f5c62f982 Reverted semicolons patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-18 16:45:41 +00:00
Julian Smart
edef87c827 Applied patch [ 1399013 ] More removals of extraneous semicolons
Wlodek Szafran


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-18 11:46:53 +00:00
David Surovell
73c902d669 minor cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-07 06:30:25 +00:00
Michael Wetherell
4948c2b6c8 Typo, should be #if not #ifdef
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35905 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-15 19:11:05 +00:00
Michael Wetherell
ac11db3a77 Restore WC_UTF16, required for compilation on Windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-15 18:58:06 +00:00
Włodzimierz Skiba
38d4b1e4bc Warning fixes for BCC, VC, OW and MinGW.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-26 13:48:01 +00:00
Vadim Zeitlin
d1f024a8de fixed wide char codeset detection for systems which do support LE/BE variants (broken by recent commit)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-26 01:02:14 +00:00
Vadim Zeitlin
c2b83fddb9 added tracing code to wide char codeset detection
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35715 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-26 00:53:00 +00:00
Vadim Zeitlin
17a1ebd101 first round of Intel compiler warning fixes: down from a few thousands just to slightly more than 100
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 19:59:19 +00:00
Michael Wetherell
156162ece8 Memory corruption fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-24 00:16:56 +00:00
Mart Raudsepp
8907154c1a Nuke #pragma implementation/interface's
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Vadim Zeitlin
cae8f1bf03 Unicode build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-22 13:43:08 +00:00
Vadim Zeitlin
422e411e95 gcc compilation fixes after last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-22 12:48:07 +00:00
Vadim Zeitlin
74a7eb0bf6 try all known UCS-[24] synonyms in wxMBConv_iconv, this should fix this class on IRIX (where UCS-4 is supported but neither UCS-4[LB]E nor UCS4, which were the only ones we tested, are not)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-22 12:36:17 +00:00
Vadim Zeitlin
40711af81b Unicode compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-18 20:12:52 +00:00
Vadim Zeitlin
0944fceb98 don't pass NULL pointer to printf(), this crashes Solaris printf
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-18 16:50:47 +00:00
Vadim Zeitlin
ce6f8d6fb3 added trace message to wxCSConv creation code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-18 16:40:24 +00:00
Vadim Zeitlin
8b3eb85d5e added GetAllEncodingNames(), use it to select the correct encoding name to pass to iconv_open()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-18 14:01:14 +00:00
Vadim Zeitlin
200a992309 and now it even compiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35484 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-13 13:47:04 +00:00
Vadim Zeitlin
d1f65ffa65 fix for last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35483 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-13 13:45:39 +00:00
Vadim Zeitlin
0331b385a8 removed strcpy to fixed buffer (do it the right way: cf rev 1.54)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-13 13:30:13 +00:00
Michael Wetherell
8f1158912f wxMBConv test cases, patch 1179989 from Vince Harron
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-08 22:29:05 +00:00
Stefan Csomor
40ba2f3bcd OSX two-level header fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-24 13:28:52 +00:00
Włodzimierz Skiba
d0ee33f5c6 '[1219035] cleanup: miscellaneous' and minor source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-13 12:19:33 +00:00
Włodzimierz Skiba
532d575bd9 Allow MSW Base be usable in other ports than wxMSW (ie. wxTVision in windows console). Adjustements for limited setup.h (as in wxTV) and minor source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-10 17:53:19 +00:00
Stefan Csomor
d9d488cf1b UniChar being platform endian
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-08 23:34:05 +00:00
Julian Smart
3103e8a97e Typo correction patch [ 1208110 ] Lots of typo corrections
Olly Betts


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-31 09:20:43 +00:00
Michael Wetherell
845905d588 Move G_FILENAME_ENCODING to wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-13 20:05:57 +00:00
Michael Wetherell
4fdc08274b Compilo fix for wxUSE_INTL=0 and use wxCSConv for broken filenames instead of wxMBConvLibc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-13 12:37:53 +00:00
Michael Wetherell
561488efd4 The octal escaping code needs to escape the escape character
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-03 21:20:11 +00:00
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