Commit Graph

223 Commits

Author SHA1 Message Date
George Rhoten
197318a1c2 ICU-821 gcc 3.0, AIX xlC and os/390 can not properly optimize IEEEremainder
X-SVN-Rev: 6086
2001-10-05 18:47:09 +00:00
George Rhoten
0adcaceb0f ICU-1257 Call setlocale only once. We don't want /en_US/C/C/C/C/C on
the second try from Solaris.

X-SVN-Rev: 6070
2001-10-05 02:10:46 +00:00
George Rhoten
4e351c0c81 ICU-513 Don't use the deprecated API anymore.
X-SVN-Rev: 5756
2001-09-17 21:50:19 +00:00
Ram Viswanadha
23183c7042 ICU-399 cast the range checks to uint32_t
X-SVN-Rev: 5734
2001-09-11 18:33:18 +00:00
Markus Scherer
0cf4543b4a ICU-1109 add U_STRING_NOT_TERMINATED_WARNING
X-SVN-Rev: 5693
2001-09-05 23:36:20 +00:00
George Rhoten
420c9b317c ICU-770 More data cleanup
X-SVN-Rev: 5678
2001-09-01 01:55:48 +00:00
Ram Viswanadha
e7042af1b8 ICU-329 Add parseError and UErrorCode to all public API's to make them consitent with ICU's design. Fix implementation to bubble the error code.
X-SVN-Rev: 5653
2001-08-31 03:23:39 +00:00
George Rhoten
8f2c4bfb65 ICU-770 More data cleanup
X-SVN-Rev: 5651
2001-08-31 02:14:47 +00:00
George Rhoten
303ce37e9a ICU-900 Fixed some compiler warnings by making the locmap "translation unit" not empty.
X-SVN-Rev: 5606
2001-08-29 21:37:09 +00:00
George Rhoten
66288afa66 ICU-1099 Add const to some static data
X-SVN-Rev: 5571
2001-08-24 00:22:07 +00:00
Ram Viswanadha
23beedf30c ICU-1031 Shuffled error constants so that for display in the debugger
X-SVN-Rev: 5539
2001-08-18 00:40:35 +00:00
Andy Heninger
fc61c83aa2 ICU-1075 Yet more data loading changes
X-SVN-Rev: 5523
2001-08-17 21:34:07 +00:00
Ram Viswanadha
61e489cacd ICU-329 Move uprv_strtod and other functions to private headers and files
X-SVN-Rev: 5498
2001-08-17 01:40:34 +00:00
George Rhoten
d1afd5979d ICU-900 Fixed some compiler warnings
X-SVN-Rev: 5492
2001-08-17 00:24:58 +00:00
George Rhoten
5979c84b75 ICU-597 Implement uprv_getDefaultCodepage for as/400, and move related code closer together.
X-SVN-Rev: 5481
2001-08-16 16:20:56 +00:00
Ram Viswanadha
87d0db48ce ICU-329 Move itou to putil.c add more error codes for parse errors and transliteration.
X-SVN-Rev: 5477
2001-08-16 01:01:57 +00:00
George Rhoten
3935356bad ICU-994 Needed to use atol instead of atoi
X-SVN-Rev: 5326
2001-07-24 01:07:56 +00:00
George Rhoten
11a7219087 ICU-580 Change os/390 batch support back to the original way.
X-SVN-Rev: 5213
2001-07-10 18:14:23 +00:00
George Rhoten
0b0a9cb20a ICU-1018 Don't use the Windows compiler extension _itoa().
X-SVN-Rev: 5191
2001-07-06 01:12:24 +00:00
Vladimir Weinstein
6c37bcf77d ICU-1031 added warning codes ending in _WARNING, changed string names. Also added error and warning needed for j392
X-SVN-Rev: 5179
2001-07-05 19:45:03 +00:00
George Rhoten
4b61754a3f ICU-900 Fixed some compiler warnings
X-SVN-Rev: 5109
2001-06-27 16:25:02 +00:00
Vladimir Weinstein
f8af8ef211 ICU-1002 changed semantics of variable top, fixed fractional UCA, added placeholder for setter API, added error codes
X-SVN-Rev: 5069
2001-06-25 04:01:49 +00:00
Yves Arrouye
04a8b879b7 ICU-963 define DATA_TYPE
X-SVN-Rev: 5060
2001-06-22 16:10:38 +00:00
George Rhoten
fec6a9409a ICU-994 fixed uprv_digitsAfterDecimal()
X-SVN-Rev: 4997
2001-06-14 00:29:38 +00:00
Yves Arrouye
78e52aba92 ICU-963 oops, it's U_ICUDATA_NAME nor U_ICUDATA_FILE
X-SVN-Rev: 4910
2001-06-07 17:14:44 +00:00
Yves Arrouye
5cfa04f7fd ICU-963 added a check for specific files in the hardcoded directory
before we get too fancy with library pathes, since we can get it wrong when
differently compiled, and incomplete, ICUs, are installed in different
locations.

X-SVN-Rev: 4908
2001-06-06 23:32:41 +00:00
George Rhoten
9568fe1112 ICU-567 Oops, forgot a ; for the Mac
X-SVN-Rev: 4679
2001-05-15 23:07:21 +00:00
George Rhoten
6a6ea806c0 ICU-567 Errors.h is not standard on the Mac, but MacTypes.h is standard.
X-SVN-Rev: 4677
2001-05-15 22:11:59 +00:00
George Rhoten
ed45c994e0 ICU-597 Doing math with infinity usually results in NaN.
as/400 won't allow this to happen.

X-SVN-Rev: 4667
2001-05-14 22:45:22 +00:00
George Rhoten
73ee79ad66 ICU-597 Minor fix to get the locale for as/400
X-SVN-Rev: 4609
2001-05-04 23:41:15 +00:00
George Rhoten
468c08fe10 ICU-597 Minor fix to get the locale for as/400
X-SVN-Rev: 4608
2001-05-04 23:34:17 +00:00
George Rhoten
322e05f131 ICU-597 Get the locale for as/400
X-SVN-Rev: 4602
2001-05-04 00:47:16 +00:00
George Rhoten
1b9b0d85a0 ICU-567 A better implementation of the Mac OS getDataDirectory
X-SVN-Rev: 4587
2001-05-03 00:13:10 +00:00
George Rhoten
c4997713ef ICU-903 Updated the copyright notice
X-SVN-Rev: 4238
2001-03-21 20:44:20 +00:00
Steven R. Loomis
83978d8c16 ICU-865 oops, semicolon
X-SVN-Rev: 4084
2001-03-15 01:31:02 +00:00
George Rhoten
84284e110a ICU-865 os/390 porting changes
X-SVN-Rev: 4080
2001-03-15 00:31:08 +00:00
George Rhoten
3377cf7fb9 ICU-597 AS/400 porting changes
X-SVN-Rev: 3722
2001-02-22 02:39:41 +00:00
Markus Scherer
1b4da8a065 ICU-388 add new error code to putil.c for u_errorName()
X-SVN-Rev: 3674
2001-02-19 21:25:31 +00:00
Markus Scherer
33418441e8 ICU-471 add shaping options & error code
X-SVN-Rev: 3629
2001-02-15 02:36:15 +00:00
George Rhoten
b3e5c73338 ICU-535 Fixed some compiler warnings
X-SVN-Rev: 3545
2001-02-02 23:03:08 +00:00
George Rhoten
e1b9012971 ICU-552 added more ISO-639 names to the codepage list
X-SVN-Rev: 3537
2001-02-02 20:34:37 +00:00
George Rhoten
1c1a918f0b ICU-832 Fixed some compiler warnings
X-SVN-Rev: 3527
2001-02-01 23:19:51 +00:00
George Rhoten
bc3aaa20ef ICU-573 Put in putil.h
X-SVN-Rev: 3361
2001-01-03 00:18:57 +00:00
Yves Arrouye
006615f65b ICU-695 put data under $(libdir) not $(datadir).
X-SVN-Rev: 2790
2000-10-25 22:26:17 +00:00
Yves Arrouye
614eb112b5 ICU-480 detect nl_langinfo() and then tries to pass it CODESET and
_NL_CTYPE_CODESET_NAME, and set U_NL_LANGINFO_CODESET accordingly. If neither
works, define U_HAVE_NL_LANGINFO_CODESET to 0, for these NetBSD boxes...

X-SVN-Rev: 2690
2000-10-16 17:26:31 +00:00
George Rhoten
377ebd5d87 ICU-659 simplified the macro logic
X-SVN-Rev: 2667
2000-10-13 02:00:26 +00:00
Yves Arrouye
67e658da3c ICU-530 use #if U_HAVE_NL_LANGINFO, not #ifdef
X-SVN-Rev: 2581
2000-10-05 23:46:48 +00:00
Yves Arrouye
0b35a1e72c ICU-630 autoconf detection code for tzset, _tzset, tzname, _tzname
(adapted from AC_STRUCT_TIMEZONE), timezone and _timezone. The defines
U_TZSET, U_TZNAME and U_TIMEZONE either contain the symbol to use, or are
undefined if there is no appropriate symbol. putil.c thus has now things
like:

	uprv_timezone() {
	#ifdef U_TIMEZONE
	    return U_TIMEZONE;
	#else
	    ...........
	#endif
	}

which is much simpler.

X-SVN-Rev: 2580
2000-10-05 23:41:59 +00:00
Yves Arrouye
1c4c881afb ICU-638 added the new U_HAVE_NL_LANGINFO, U_HAVE_CODESET, and
U_HAVE_TZSET to get rid of the (routinely incorrect) manipulation of U_POSIX
based on platform names. Also added U_HAVE_WCSCPY to define whether a
platform has the w* functions (it may not, even if wchar.h is present).

X-SVN-Rev: 2579
2000-10-05 19:33:35 +00:00
George Rhoten
539869f5f4 ICU-631 The _WIN32 checking should really be WIN32.
X-SVN-Rev: 2570
2000-10-04 22:52:22 +00:00
George Rhoten
8fec668948 ICU-480 Simplified the #if for timezone. NetBSD still not supported, but it will be easier to add in the future.
X-SVN-Rev: 2565
2000-10-04 19:24:31 +00:00
George Rhoten
dff8dc915b ICU-564 Fixed another static memory leak. This leak is Windows specific.
X-SVN-Rev: 2449
2000-09-19 18:02:53 +00:00
Steven R. Loomis
00f74db99a ICU-567 MacOS
X-SVN-Rev: 2365
2000-08-28 21:27:18 +00:00
George Rhoten
90b05dc422 ICU-535 fixed some compiler warnings
X-SVN-Rev: 2337
2000-08-23 16:55:21 +00:00
Ram Viswanadha
c795773004 ICU-565 Added new error codes
X-SVN-Rev: 2329
2000-08-23 01:19:05 +00:00
Ram Viswanadha
25f876129a ICU-565 Added new error codes
X-SVN-Rev: 2323
2000-08-22 18:04:25 +00:00
George Rhoten
f3144ab272 ICU-535 fixed some compiler warnings
X-SVN-Rev: 2204
2000-08-11 20:36:51 +00:00
George Rhoten
0cd0aae1ef ICU-535 fixed some compiler warnings
X-SVN-Rev: 2177
2000-08-10 21:45:43 +00:00
Steven R. Loomis
6fa70ecf4a ICU-527 Don't crash if setlocale() returns NULL
X-SVN-Rev: 2099
2000-08-02 19:36:19 +00:00
Yves Arrouye
13dccbd5b1 ICU-377 split the POXIX functionality into U_POSIX_LOCALE,
U_POSIX_TIMEZONE, and add U_HAVE_NL_LANGINFO for those that have
U_POSIX_LOCALE defined (may or may not have nl_langinfo()). nl_langinfo()
should be autodected but I'm lazy today (and everything in putil.c should
be autodected, actually, so there!). For Darwin, define U_POSIX_LOCALE
but not U_HAVE_NL_LANGINFO.

X-SVN-Rev: 1969
2000-07-20 04:43:47 +00:00
Yves Arrouye
9fbbbf01bc ICU-377 removed U_RHAPSODY, only U_DARWIN is used now.
X-SVN-Rev: 1938
2000-07-19 04:29:20 +00:00
Yves Arrouye
55cc3f3d3f ICU-353 const char * please.
X-SVN-Rev: 1795
2000-07-11 22:44:35 +00:00
Yves Arrouye
05e119e889 ICU-377 U_RHAPSODY doesn't look very POSIX from our point of view.
X-SVN-Rev: 1792
2000-07-11 22:24:00 +00:00
Steven R. Loomis
73b342fb13 ICU-343 parse locales such as fr_FR.UTF8@EURO [codepage and locale variant must be considered]
X-SVN-Rev: 1754
2000-07-07 06:12:00 +00:00
Yves Arrouye
2dd27cde6e ICU-377 Darwin doesn't have <langinfo.h> (even though the functions are
in the manual!) and thus shouldn't be marked POSIX.

X-SVN-Rev: 1730
2000-07-03 19:30:42 +00:00
Yves Arrouye
d37141dcac ICU-371 changed LINUX and SOLARIS to U_LINUX and U_SOLARIS, also
changed HAVE_INTTYPES_H to U_HAVE_INTTYPES_H.

X-SVN-Rev: 1726
2000-06-30 21:35:03 +00:00
Vladimir Weinstein
497abfd708 ICU-460 Porting changes
X-SVN-Rev: 1678
2000-06-28 22:20:08 +00:00
Markus Scherer
ee39dd3f52 ICU-397 better u_versionToString() error checking
X-SVN-Rev: 1554
2000-06-02 18:37:54 +00:00
Steven R. Loomis
561deb6ee6 ICU-408 HPUX returns 'C C C C C C' as the default locale, map to en_US like 'C'
X-SVN-Rev: 1518
2000-05-30 20:43:37 +00:00
Helena Chapman
aab9c41ddc ICU-408 AIX 4.3.x port changes.
X-SVN-Rev: 1460
2000-05-24 19:21:39 +00:00
Markus Scherer
aca0c53ac2 ICU-397 make u_versionFrom/ToString() public
X-SVN-Rev: 1437
2000-05-22 22:24:51 +00:00
Markus Scherer
a511f10787 ICU-401 different ebcdic<->ascii tables for non-os/390 ebcdic platforms
X-SVN-Rev: 1418
2000-05-20 00:58:14 +00:00
Helena Chapman
335e7a1731 ICU-394 Check NULL return in the default lookup table.
X-SVN-Rev: 1416
2000-05-19 17:19:07 +00:00
Helena Chapman
69ba12f77c ICU-351 Define UBool to be used in the APIs.
X-SVN-Rev: 1410
2000-05-18 22:08:39 +00:00
Vladimir Weinstein
c786b21d52 ICU-184 resource data files in memory mapped format (initial revision)
X-SVN-Rev: 1365
2000-05-15 18:39:17 +00:00
Yves Arrouye
0d35fb05a2 ICU-390 define the right cpp symbols for compilation under Linux
and Solaris when gcc -ansi is used (which negates POSIX, X/Open, BSD, and
SVID specific definitions in the standard libraries, definitions that ICU
needs).

X-SVN-Rev: 1354
2000-05-12 01:15:50 +00:00
Yves Arrouye
38baf3e075 ICU-390 define __USE_POSIX and __USE_XOPEN before including
<time.h> if POSIX and LINUX are both defined.

X-SVN-Rev: 1352
2000-05-12 00:42:00 +00:00
Helena Chapman
1de326b1fe ICU-375 Added code to detect system default locale in POSIX environments. Merged back from 1.4.1.2 release.
X-SVN-Rev: 1311
2000-05-02 23:25:45 +00:00
Yves Arrouye
808294bc94 ICU-377 more changes from Todd for timezone handling on Rhapsody.
X-SVN-Rev: 1297
2000-04-28 16:17:04 +00:00
Yves Arrouye
4d0f747e86 ICU-378 (Todd) Use falback for timezone on Rhapsody too.
X-SVN-Rev: 1294
2000-04-28 04:36:17 +00:00
Markus Scherer
a2707cca7c ICU-365 fix u_versionFromString()
X-SVN-Rev: 1174
2000-04-19 22:13:30 +00:00
Yves Arrouye
f911c8b490 ICU-353 _tzname[n] on Windows too, please... Thanks Vladimir for the heads-up.
X-SVN-Rev: 1133
2000-04-15 03:33:59 +00:00
Yves Arrouye
bff1b2e05c ICU-353 use better names to replace index, depending on what the func/
method actually does with it (for example: n to get the nth element, offset
within a buffer, etc.).

X-SVN-Rev: 1131
2000-04-14 05:22:29 +00:00
Yves Arrouye
c69c164be8 ICU-353 basic warnings cleanup (not touching object's memory layout). A
basic build now compiles w/o a single warning on Linux. One with --enable-strict
is a different matter...

X-SVN-Rev: 1124
2000-04-13 23:00:43 +00:00
Markus Scherer
e542c7dedc ICU-346 change IEEE_754 to a numeric macro (value 0 or 1)
X-SVN-Rev: 1080
2000-04-06 16:45:03 +00:00
Alan Liu
b24fb13633 ICU-315 fix C compile errors
X-SVN-Rev: 1075
2000-04-05 21:33:50 +00:00
Alan Liu
b839eb84e0 ICU-315 add uprv_IEEEremainder doc
X-SVN-Rev: 1072
2000-04-05 19:18:53 +00:00
Alan Liu
5142b7614c ICU-315 add portable IEEEremainder implementation
X-SVN-Rev: 1066
2000-04-05 16:53:37 +00:00
Markus Scherer
2b5a36af8c ICU-315 more S/390 and EBCDIC changes
X-SVN-Rev: 1044
2000-03-31 21:45:17 +00:00
Markus Scherer
0b31557c8f ICU-315 more S/390 changes
X-SVN-Rev: 1028
2000-03-29 23:52:56 +00:00
Alan Liu
e9697c4835 ICU-336 fix index out of range bug in u_UCharToChars
X-SVN-Rev: 974
2000-03-22 19:12:21 +00:00
Helena Chapman
a24534df38 ICU-84 S/390 DLL code update.
X-SVN-Rev: 937
2000-03-10 01:52:03 +00:00
Steven R. Loomis
7b3299b787 ICU-84 s/390 update
X-SVN-Rev: 802
2000-02-18 21:36:51 +00:00
Steven R. Loomis
6c77945014 ICU-200 OS400 update
X-SVN-Rev: 797
2000-02-18 21:05:24 +00:00
Markus Scherer
eb3b8551a2 ICU-279 EBCDIC LF/NL must be mapped according to the CDRA
X-SVN-Rev: 755
2000-02-14 19:10:13 +00:00
Markus Scherer
ea63c9f28e ICU-87 changed the registry key to HKLM "SOFTWARE\\ICU\\Unicode\\Data"
X-SVN-Rev: 642
2000-01-18 23:09:30 +00:00
Markus Scherer
ac3b02999d ICU-210 improve version functions
X-SVN-Rev: 590
2000-01-14 23:56:15 +00:00
Markus Scherer
aeac763301 ICU-161 open-sourcify more (c) statements
X-SVN-Rev: 577
2000-01-13 23:54:23 +00:00
Helena Chapman
423580d732 ICU-84 Added OS390 fixes for 12/28 snapshot.
.

X-SVN-Rev: 570
2000-01-13 21:11:42 +00:00
Helena Chapman
6efc3436b6 ICU-210 changed UVersionInfo typedef.
X-SVN-Rev: 552
2000-01-12 20:20:38 +00:00
Helena Chapman
4c95546548 ICU-210 changed the u_getVersion APIs to use UVersionInfo.
X-SVN-Rev: 551
2000-01-12 19:50:27 +00:00
Helena Chapman
218b24bba5 ICU-210 Three major changes:
u_getVersion: returns ICU release/version information
u_getUnicodeVersion: returns Unicode standard version supported in ICU
Renamed the original u_getVersion to u_getUnicodeVersion.

X-SVN-Rev: 536
2000-01-11 23:20:26 +00:00
Helena Chapman
22333179b2 ICU-84 Updated the S/390 putils.c.
X-SVN-Rev: 478
1999-12-30 00:41:40 +00:00
Vladimir Weinstein
8e21f86812 ICU-12 all public include files are now in unicode dir, all private icu_ functions renamed to uprv_
X-SVN-Rev: 472
1999-12-28 23:39:02 +00:00
Helena Chapman
16ac11f546 ICU-200 Updated with OS/400 specific port changes.
X-SVN-Rev: 459
1999-12-22 22:57:04 +00:00
Helena Chapman
34f6f3b538 ICU-86 Added default converter setting for OS400.
X-SVN-Rev: 436
1999-12-20 18:24:20 +00:00
Steven R. Loomis
70b4238f27 ICU-157 Fixed HPUX branch of getLibraryPath() - remove C++'isms, etc.
X-SVN-Rev: 394
1999-12-13 23:13:24 +00:00
Markus Scherer
2d26f13d40 ICU-175 rename errorName() to u_errorName()
X-SVN-Rev: 343
1999-12-08 23:31:17 +00:00
Steven R. Loomis
a34482e43f ICU-157 converter data in udata + udata fixes
X-SVN-Rev: 296
1999-12-04 02:31:40 +00:00
Markus Scherer
7a6441902b ICU-165 avoid alias name lookup for each creation of the default converter
X-SVN-Rev: 294
1999-12-04 00:55:54 +00:00
Markus Scherer
1569b465a5 ICU-68 implement unicode string literals in c
X-SVN-Rev: 263
1999-11-30 23:25:49 +00:00
Steven R. Loomis
9c91314c16 ICU-157 some AIX fixes
X-SVN-Rev: 257
1999-11-24 19:35:20 +00:00
Steven R. Loomis
564242465c ICU-157 solaris support !
X-SVN-Rev: 237
1999-11-23 05:34:05 +00:00
Steven R. Loomis
981fc8a22e ICU-157 posix support for udata.. linux dll support.. posix should work with mmapped files OK
X-SVN-Rev: 235
1999-11-23 04:49:35 +00:00
Markus Scherer
a914ea523e ICU-87 get the library path on os/2
X-SVN-Rev: 187
1999-11-19 01:26:36 +00:00
Markus Scherer
b949367c6b ICU-87 improve hardcoded fallback data path
X-SVN-Rev: 185
1999-11-19 00:59:57 +00:00
Markus Scherer
a05544211a ICU-87 improve u_[get|set]DataDirectory() - find better & always end with '/'
X-SVN-Rev: 183
1999-11-18 22:48:30 +00:00
Helena Chapman
d60fe9d14e ICU-84 Updated with S/390 IEEE port changes.
X-SVN-Rev: 177
1999-11-16 01:05:10 +00:00
Markus Scherer
be8483b212 ICU-7 change AS400 to OS400 for #ifdef etc.
X-SVN-Rev: 97
1999-10-22 00:38:39 +00:00
Markus Scherer
07a2bc0937 ICU-6 more renaming of constant names
FAILURE -> U_FAILURE etc.

X-SVN-Rev: 76
1999-10-18 22:48:32 +00:00
Helena Chapman
1ccc7d153f ICU version 1.3 merge from CMVS.
X-SVN-Rev: 9
1999-09-30 23:47:52 +00:00
Stephen Booth
7406982293 Sync with 1.2.5
X-SVN-Rev: 8
1999-09-03 22:08:47 +00:00
Unknown User
aa0b0a88e8 Initial revision
X-SVN-Rev: 2
1999-08-16 21:50:52 +00:00