Jonas Maebe
0d8594a705
* made cwstring thread safe without locks + test (twide4): widestring
...
manager now has two extra parameterless procedures (ThreadInitProc
and ThreadFiniProc) which are called whenever a thread begins/ends,
and cwstring uses these to create separate iconv handles for
each thread (via threadvars)
* renamed UCS4 to UCS-4BE/LE, because UCS4 is not recognised by most
systems
* clean up all iconv handles on exit, and check whether they are
valid before doing so
git-svn-id: trunk@7949 -
2007-07-04 18:10:34 +00:00
Jonas Maebe
7b47ebff6b
* removed Darwin/Solaris-specific code and fixed all issues by calling
...
setlocale(LC_ALL,'') per POSIX, which initialises the langinfo stuff
based on the environment variables (some OS'es do that automatically,
but at least Darwin and Solaris don't)
git-svn-id: trunk@7672 -
2007-06-15 18:51:06 +00:00
micha
3e97c6b324
* fix cwstring compilation: remove extra "}"
...
git-svn-id: trunk@7661 -
2007-06-14 14:45:19 +00:00
Jonas Maebe
6111e3e2b9
* also force utf-8 on Solaris, nl_langinfo(CODESET) doesn't work there
...
either and utf-8 is also its default "international" encoding
git-svn-id: trunk@7660 -
2007-06-14 10:56:29 +00:00
Jonas Maebe
8523bdc831
* force utf-8 for darwin
...
git-svn-id: trunk@7644 -
2007-06-13 12:59:39 +00:00
Jonas Maebe
399ab249d6
* initialise/finalise critical section
...
git-svn-id: trunk@7455 -
2007-05-24 12:24:45 +00:00
Jonas Maebe
7e3b792713
* fixed for solaris:
...
* iconv is in libc for solaris
* use official names for unicode encodings (UTF-16BE/UTF-16LE instead
of unofficial UNICODEBIG/UNICODELITTLE aliases, which are not supported
by solaris' iconv)
git-svn-id: trunk@7452 -
2007-05-24 11:38:07 +00:00
daniel
a6a0745436
* Apply path in Mantis report 8103 to fix ansi2wide issue
...
git-svn-id: trunk@5916 -
2007-01-12 10:35:20 +00:00
marco
779b33148c
* fix
...
git-svn-id: trunk@5769 -
2006-12-31 16:21:19 +00:00
daniel
76cf70bdbd
* Use proper critical sections.
...
- Remove sysutils dependency by turning exception into runerror, which is
converted into exception anyway if user decides to use sysutils.
git-svn-id: trunk@5471 -
2006-11-25 07:32:36 +00:00
marco
dd7f715405
* FreeBSD fixes
...
git-svn-id: trunk@4994 -
2006-10-21 13:16:56 +00:00
micha
d704af7216
fix compilation for {$T+} linux/win
...
git-svn-id: trunk@4794 -
2006-10-04 20:43:55 +00:00
Jonas Maebe
2b98aa8005
+ CODESET for solaris
...
git-svn-id: trunk@4335 -
2006-08-03 15:36:13 +00:00
michael
497abf8f5d
+ Several improvements by Martin Schreiber
...
git-svn-id: trunk@4246 -
2006-07-17 19:52:00 +00:00
florian
e92cc059a7
* fixed previous commit
...
git-svn-id: trunk@3949 -
2006-06-25 20:37:14 +00:00
florian
f32b1ccbe0
+ cwstring multithreading safe, fixes #6873
...
git-svn-id: trunk@3948 -
2006-06-25 20:17:32 +00:00
florian
246eb14e95
* fixed widestring lib on solaris
...
git-svn-id: trunk@2882 -
2006-03-12 10:09:41 +00:00
peter
513cbb1c6e
* Make RTL compilable
...
git-svn-id: trunk@2476 -
2006-02-08 08:56:16 +00:00
marco
768bf94a99
* more "shared" fixes
...
git-svn-id: trunk@2295 -
2006-01-15 14:56:20 +00:00
Jonas Maebe
b08eccdbf0
- reverted ansi2wide and wide2ansi changes, because they affect
...
third party sources too much
git-svn-id: trunk@2046 -
2005-12-24 01:40:23 +00:00
Jonas Maebe
9a08cdccf0
* several changes of var parameters into out parameters to avoid
...
useless warnings: code parameter of val(), destination of str(),
destinations of ansi2wide and wide2ansi
git-svn-id: trunk@2041 -
2005-12-23 22:25:26 +00:00
florian
6e2a771c41
* Ansi2Wide inserts ? for unknown chars
...
* better error reporting
git-svn-id: trunk@1189 -
2005-09-25 15:04:35 +00:00
florian
bb26084a0f
+ UCS4StringToWideString
...
+ WideStringToUCS4String
+ locale sensitive comparing of widestrings on unix
git-svn-id: trunk@1142 -
2005-09-19 19:13:03 +00:00
florian
63ed93fc24
* fixed previous commit
...
git-svn-id: trunk@1050 -
2005-09-04 14:08:21 +00:00
florian
629fc8fe64
+ StrCompAnsi implementation
...
git-svn-id: trunk@1049 -
2005-09-04 13:49:23 +00:00
marco
287e8317a6
* apparantly broke linux since iconv is in glibc there, fixed + some minor gotchas
...
git-svn-id: trunk@806 -
2005-08-06 20:20:19 +00:00
marco
c90da53c9f
* more darwin fixes. Export to libiconv not iconv
...
git-svn-id: trunk@805 -
2005-08-06 17:11:08 +00:00
marco
40ff86dd59
* Darwin fixes. Untested on Darwin yet. (adding lib + name to external statements)
...
git-svn-id: trunk@804 -
2005-08-06 15:35:12 +00:00
marco
801428838f
* FreeBSD cwstring support
...
git-svn-id: trunk@802 -
2005-08-06 13:33:36 +00:00
florian
e473858821
* fixed setting of widestringmanager
...
--Ths line, and those below, will be ignored--
M rtl/unix/cwstring.pp
git-svn-id: trunk@790 -
2005-08-04 18:52:16 +00:00
Jonas Maebe
828eebe984
* cwstring fixed and activated for Darwin
...
git-svn-id: trunk@407 -
2005-06-14 18:30:05 +00:00
michael
8a226bba52
+ Removed HASWIDESTRING/HASWIDECHAR defines
...
git-svn-id: trunk@241 -
2005-06-07 20:42:22 +00:00
fpc
790a4fe2d3
* log and id tags removed
...
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00
fpc
50778076c3
initial import
...
git-svn-id: trunk@1 -
2005-05-16 18:37:41 +00:00
florian
a5ed208457
* first working version
2005-03-17 19:11:04 +00:00
florian
a0eae3d6e8
+ ansi<->wide implemented using iconv
2005-03-16 22:26:12 +00:00
peter
e417e34496
* truncate log
2005-02-14 17:13:06 +00:00
florian
8f571abbb9
+ infrastructure for WideCompareText implemented
2005-02-03 18:40:50 +00:00
florian
4f7560d89e
* improved widestring infrastructure manager
2005-02-01 20:22:49 +00:00