Vadim Zeitlin
a905bdb8a4
let the UTF7 test fail but not crash
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-01 15:53:55 +00:00
Vadim Zeitlin
356410fc88
fixed wxMBConv_iconv::GetMBNul()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-01 15:34:42 +00:00
Vadim Zeitlin
fb86a4bb69
regenerated to add textfiletest
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-01 14:04:59 +00:00
Vadim Zeitlin
22886fb3c3
Unix compilation fixes after last commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-01 13:38:28 +00:00
Vadim Zeitlin
adf5d5935b
added NUL command
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-01 12:43:52 +00:00
Vadim Zeitlin
eec47cc6c4
Described in the comments and documented the semantics of the parameters and
...
return values of wxMBConv methods and tried to make them more consistent. The
only (intentional) backwards incompatible change is that cMB2WC/cWC2MB now
return the length of the converted string in outLen parameter and not length+1
Added wxMBConv::GetMBNul() and use it instead of supposing that all multibyte
strings are always terminated with a single NUL which is wrong for UTF-16/32.
Using GetMBNul(), completely rewrote cMB2WC/cWC2MB() to accept a string of the
specified length, whether it is NUL-terminated or not. This means that they
don't overwrite the provided buffer any more and convert the entire string in
all cases.
Fixed bug in wxMBConvUTF16::WC2MB() which didn't NUL-terminate the string
properlyv even if there was enough space.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-01 12:43:03 +00:00
Vadim Zeitlin
7e0a8463eb
made DoTestConversion() work with strings containing NULs
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-01 03:24:23 +00:00
Vadim Zeitlin
6901ac371f
added extend() method which realloc()s the buffer
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-01 02:58:56 +00:00
Vadim Zeitlin
fedde9b906
default ctor should create an empty/uninitialized buffer, not one with a single character string
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 23:33:38 +00:00
Robin Dunn
1fce4e9668
Fixed the equality and inequality operators for some of the basic
...
data types (wx.Point, wx.Size, wx.Colour, etc.) to no longer raise a
TypeError if the compared object is not compatible, but to just return
a boolean as expected. For example::
wx.Colour(64,0,64) == 123 ==> False
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 23:29:39 +00:00
Robin Dunn
8948306f78
Fixed problem in wx.lib.splitter when used on 64-bit platforms. Used
...
the current length of the list for specifying an append instead of
sys.maxint.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 23:19:34 +00:00
Vadim Zeitlin
2229d9b30b
added missing licence information
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 21:14:40 +00:00
Vadim Zeitlin
da12017a64
undid last (wrong) change to wxMBConvUTF16swap::MB2WC(); added comment to explain why
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 20:28:37 +00:00
Vadim Zeitlin
5975f1982d
added UTF16 test
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 20:25:20 +00:00
Vadim Zeitlin
bfab25d4c4
fixed fatal buffer overwrite in wxMBConvUTF16swap::MB2WC()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38487 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 20:23:33 +00:00
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
b0441359ca
test predefined wxConvUTF[78] too
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 19:30:34 +00:00
Vadim Zeitlin
7ce0c58f8d
the expected test result was wrong, corrected; also define a manifest constant only once instead of using its value everywhere
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38483 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 19:24:23 +00:00
Vadim Zeitlin
6ef5a7a370
fixed if/idef wxHAVE_U_ESCAPE mixup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 19:15:46 +00:00
David Surovell
b8c3d6306c
simplify KeywordSearch; cleanup and reformat
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 19:04:25 +00:00
Włodzimierz Skiba
d879e16fc3
Build fix for 2.6 compatibility off.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 18:26:24 +00:00
Włodzimierz Skiba
1c067fe3c1
Removed every usage of obsolete wxTLW flags. 2.6 compatibility markup for them.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 18:07:22 +00:00
Vadim Zeitlin
ed177375b2
use wxHAVE_U_ESCAPE to accomodate old compilers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 17:43:10 +00:00
Vadim Zeitlin
8da7a00a94
enable tests using \u escapes for VC7; replaced compiler version checks for this with wxHAVE_U_ESCAPE defined once and for all in testprec.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 17:42:26 +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
Vadim Zeitlin
a65ca3e600
moved wide char conversion tests to their own file
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 17:10:07 +00:00
Vadim Zeitlin
ede838eb4d
removed wxTextFile test case, what was it doing here?
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 17:07:25 +00:00
Roman Rolinsky
ecc19da767
version 0.1.7-3
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38470 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 16:39:07 +00:00
Roman Rolinsky
9932837291
ignore wrong colour spec
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38469 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 16:38:20 +00:00
Roman Rolinsky
ebaaf8f630
fix for copy/paste to work with i18n
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38468 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 14:36:34 +00:00
Vadim Zeitlin
93a57d19fe
added tests for UTF8 and UTF16 files
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 14:26:59 +00:00
Vadim Zeitlin
44327ff375
don't give error when reading empty file in Unicode build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 14:00:31 +00:00
Vadim Zeitlin
18230eb6b6
Unicode compilation fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 13:58:01 +00:00
Vadim Zeitlin
dbcf443c7d
rewrote Read() to slurp all the file at once to avoid problems in Unicode build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 13:53:20 +00:00
Vadim Zeitlin
468c5a97ec
added unit test for wxTextFile (reading only for now)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 13:46:38 +00:00
Włodzimierz Skiba
6a9e54bdff
Better backward compatibility and deprecation markup for interface deprecated in comments.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 11:13:03 +00:00
Vadim Zeitlin
4521d1cdda
also link in ODBC lib if wxUSE_ODBC (patch 1457800)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 00:05:02 +00:00
Vadim Zeitlin
dedba2a11f
use wx/dynlib.h and not wx/dynload.h (patch 1448691)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 00:03:15 +00:00
Vadim Zeitlin
735dec5e62
added #if wxUSE_CONSTRAINTS around the whole file (patch 1448826)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 00:01:11 +00:00
Vadim Zeitlin
b3825734fc
don't compile DirectDraw code when wxUSE_DIRECTDRAW==0 (patch 1461271); set wxUSE_DIRECTDRAW to 0 by default
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-30 23:49:34 +00:00
Jamie Gadd
82d492f145
Include compatibility guard for int GetItemSpacing( bool isSmall ) in implementation file also.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-30 23:01:55 +00:00
Robert Roebling
0fcce6b9d9
Fix previous crashes when scrolling generic version
...
of wxDataViewCtrl.
Added in-place editing of strings (no user vetoing
and such). The code uses the corrected version of
the respective code from wxListCtrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-30 15:35:44 +00:00
Kevin Hock
3c57bda545
Fix GetTraits() check for event loop in wxSocketBase::_Wait() [ bug 1460607 ] [ patch by Angel / elkry ]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-30 15:29:22 +00:00
Robert Roebling
3603a3895e
Fix wxListCtrl in-place editing (to not crash
...
when editin is finished by clicking somewhere
else and thus taking the focus away from the
wxTextCtrl). Also, "delete this" in the middle
of code isn't optimal.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-30 15:25:59 +00:00
Vadim Zeitlin
c1981a2fa4
don't process previously read characters twice in OnRead()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-30 14:04:46 +00:00
Włodzimierz Skiba
ca3e85cfa8
Better backward compatibility and deprecation markup for interface deprecated in comments.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-30 14:04:17 +00:00
Julian Smart
63fa3f89e8
Unicode correction
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-30 11:35:12 +00:00
Julian Smart
1fc1bbfc68
Generate Mac bundle for helpview
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-30 11:32:39 +00:00
Robert Roebling
f7570f5771
Use memcpy instead of strcpy.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38444 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-30 09:53:15 +00:00