Commit Graph

51 Commits

Author SHA1 Message Date
Jeff Genovy
e7d36adf17 ICU-20206 ICU4C: Make USE_WINDOWS_LCID_MAPPING_API compile-time configurable. 2019-01-24 14:55:26 -08:00
Fredrik Roubert
acc3f65a87
ICU-13417 Replace fixed buffers in uloc_tag.cpp with CharString.
This gets rid of those fixed buffers that caused ICU-13417 to be filed
in the first place, those that prevent handling language tags with very
large amounts of keywords.

A number of fixed buffers will still remain in uloc_tag.cpp (and
elsewhere in the locale handling code) for the time being, but this
change is a necessary first step in cleaning up this code and will
alleviate the most pressing problem encountered by ICU4C users.

An off-by-one error in _getKeywords() caused uloc_canonicalize() to not
write out the final keyword value in case the result would fill up the
buffer exactly, resulting in U_STRING_NOT_TERMINATED_WARNING.
2018-09-27 14:27:41 -07:00
Daniel Ju
b13c951348
ICU-20043 ICU-13214 ICU-13764 MSVC W3 and W4 warning cleanup (#53)
Cleaned up all of the MSVC W3 warnings and most of the W4 warnings in the common and i18n projects.
2018-09-27 14:27:38 -07:00
Peter Edberg
3bfe134a86 ICU-13359 Integrate CLDR 32 alpha data into ICU for ICU 60rc; known issues #13366,#13368
X-SVN-Rev: 40463
2017-09-26 21:20:01 +00:00
William Zhao
d847a21238 ICU-13275 Merge warning cleanup fixes into trunk
X-SVN-Rev: 40283
2017-07-22 01:11:59 +00:00
Andy Heninger
3dcc83d0d4 ICU-13277 Locale constructor buffer overflow.
X-SVN-Rev: 40267
2017-07-15 00:22:20 +00:00
Peter Edberg
0f4572a7e6 ICU-13018 uloc_get/setKeywordValue have stricter input conditions; setKeywordValue uses CharString to assemble updated output
X-SVN-Rev: 39891
2017-03-21 23:08:37 +00:00
Jeff Genovy
e9946ec98e ICU-13027 - Merge in changes from 'branches/shawnste/working/icu4c'
X-SVN-Rev: 39890
2017-03-21 01:03:49 +00:00
Peter Edberg
183b124712 ICU-12940 Add "ars" as alias to "ar_SA" locale, to "ar" for coll/rbnf
X-SVN-Rev: 39587
2017-01-20 20:07:27 +00:00
Andy Heninger
242e02c388 ICU-12764 icu4c utf-8 source files, update Copyright notices.
X-SVN-Rev: 39583
2017-01-20 00:20:31 +00:00
Steven R. Loomis
29d7ab227d ICU-12752 merge from branch; z porting changes
X-SVN-Rev: 39385
2016-09-28 17:30:09 +00:00
Steven R. Loomis
5f2c294d1c ICU-12752 fix breakage from r39368 on windows.
X-SVN-Rev: 39374
2016-09-28 02:26:02 +00:00
Steven R. Loomis
6825277072 ICU-12752 commit some IBM z fixes. Library code building
X-SVN-Rev: 39368
2016-09-27 23:39:01 +00:00
Andy Heninger
c1c6c1c2a2 ICU-12652 add 'using namespace icu' to fix build failure from use of MaybeStackArray<>
X-SVN-Rev: 39142
2016-09-06 23:10:27 +00:00
Steven R. Loomis
719ea7b471 ICU-12652 tab -> space
X-SVN-Rev: 39126
2016-09-02 21:01:19 +00:00
Steven R. Loomis
d9babe5948 ICU-12652 better fix, see r39114
X-SVN-Rev: 39115
2016-08-31 23:37:29 +00:00
Steven R. Loomis
20f11347f7 ICU-12652 fix for null termination in uloc_acceptLanguageFromHTTP
X-SVN-Rev: 39109
2016-08-31 14:53:53 +00:00
Michael Ow
61607c2773 ICU-12564 Update copyright notice in trunk
X-SVN-Rev: 38848
2016-06-15 18:58:17 +00:00
Yoshito Umaoka
00ca13e126 ICU-12564 Reverted r38761 and r38762, because we want to prepend the Unicode copyright for existing source files, instead of replacing copyright comments.
X-SVN-Rev: 38776
2016-05-31 21:45:07 +00:00
Michael Ow
c9f199a30f ICU-12564 Update copyright notice in ICU4C
X-SVN-Rev: 38761
2016-05-26 22:32:17 +00:00
Markus Scherer
155fb20a8e ICU-12187 fix dependencies, add a file, fix memory allocations
X-SVN-Rev: 38479
2016-03-03 22:56:54 +00:00
Fredrik Roubert
7f4b8d106b ICU-12012 Replace all sizeof p / sizeof *p with UPRV_LENGTHOF().
R=markus.icu@gmail.com

Review URL: https://codereview.appspot.com/285520043 .

X-SVN-Rev: 38337
2016-02-23 10:40:09 +00:00
Peter Edberg
086ee675a8 ICU-12085 manually integrate branch > trunk (had network problems committing updated branch)
X-SVN-Rev: 38311
2016-02-15 17:58:23 +00:00
Michael Ow
385c8dd53d ICU-11793 Add validation check to len
X-SVN-Rev: 38080
2015-10-28 16:30:28 +00:00
John Emmons
01e0c332a5 ICU-11846 CLDR 28 data integration
X-SVN-Rev: 37836
2015-08-27 20:23:27 +00:00
Yoshito Umaoka
47a3db9eb6 ICU-11602 Fixed a wrong condition used for detecting keyword without value in uloc internal function for parsing keywords. TestKeywordVariants was updated to include a case hitting the code path. The test code was also updated to handle error status. A follow up ticket #11690 was created for recording some issues with the test case found in this time.
X-SVN-Rev: 37454
2015-05-20 23:44:16 +00:00
Steven R. Loomis
174485b702 ICU-10881 uloc.cpp warning still wasn't fixed. fixing here.
X-SVN-Rev: 36482
2014-09-11 22:40:36 +00:00
Yoshito Umaoka
9bdc7d3e1c ICU-8951 Changes based on Markus's review comment. Fixed an EBCDIC support problem.
X-SVN-Rev: 36450
2014-09-11 05:51:15 +00:00
Yoshito Umaoka
8885f1ef78 ICU-8951 BCP 47 key/type converter APIs merged from the work branch.
X-SVN-Rev: 36320
2014-09-03 04:42:21 +00:00
Andy Heninger
dbcf79f57b ICU-10799 ICU initialization code, review & cleanup.
X-SVN-Rev: 35649
2014-04-23 23:22:13 +00:00
John Emmons
a869b0d483 ICU-10335 Merge completed CLDR24 branch into trunk.
X-SVN-Rev: 34238
2013-09-07 20:46:42 +00:00
Jungshik Shin
c207e27745 ICU-10250 fix an error in _getKeywords()
X-SVN-Rev: 34078
2013-08-21 23:51:56 +00:00
Yoshito Umaoka
1551c65468 ICU-10098 Fixed LCID to posix-style locale ID mapping problem. The fix required to change the internal LCID mapping function interface, and resolved a threading issue in uloc_getLocaleForLCID() and some other internal implementation problems in Win32DateFormat/Win32NumberFormat.
X-SVN-Rev: 33586
2013-05-03 21:36:03 +00:00
John Emmons
0f90af1342 ICU-9878 Use just the CLDR language code list instead of the whole ISO639
X-SVN-Rev: 33337
2013-02-27 13:44:20 +00:00
John Emmons
f267d1e3dd ICU-9878 Update LANGUAGES and COUNTRIES list with current ISO/CLDR tables
X-SVN-Rev: 33336
2013-02-27 04:33:58 +00:00
John Emmons
276a244c9b ICU-9251 First cut merge of CLDR 22 data
X-SVN-Rev: 32275
2012-08-28 21:56:06 +00:00
Markus Scherer
2f6df5d520 ICU-9434 use static_cast<pointer type>(void *) not reinterpret_cast
X-SVN-Rev: 32119
2012-08-08 00:50:16 +00:00
Debabrata Sengupta
f81fa56468 ICU-8971 fixed parsing inconsistency and corrected few test cases
X-SVN-Rev: 32031
2012-07-09 18:25:45 +00:00
Debabrata Sengupta
fab050ad44 ICU-8971 changes undone
X-SVN-Rev: 31977
2012-06-21 20:58:24 +00:00
Debabrata Sengupta
19d7b4d709 ICU-8971 fixed inconsistency bug between C and J for parsing and canonicalization
X-SVN-Rev: 31975
2012-06-21 19:52:29 +00:00
Michael Ow
0ca13b73b0 ICU-9292 Merge BEAM warning fixes from branch into trunk
X-SVN-Rev: 31792
2012-05-03 05:50:26 +00:00
Jungshik Shin
5dd029e6e5 ICU-9114 buffer overflow in _getKeyword() in uloc.cpp
X-SVN-Rev: 31396
2012-02-15 00:19:17 +00:00
Abhinav Gupta
64064a7cf2 ICU-8984 apply patch attached to ticket
X-SVN-Rev: 31169
2011-12-22 15:42:45 +00:00
Markus Scherer
46749f4d00 ICU-8999 uprv_isASCIILetter()
X-SVN-Rev: 31117
2011-12-14 23:43:56 +00:00
Markus Scherer
68aa38ad35 ICU-8668 add more parentheses, avoid warnings
X-SVN-Rev: 31105
2011-12-13 00:34:52 +00:00
Steven R. Loomis
2a751ff4e3 ICU-8668 add parenthesis
X-SVN-Rev: 31103
2011-12-12 23:35:07 +00:00
Abhinav Gupta
336ce31084 ICU-8668 Remove isalpha dependency
X-SVN-Rev: 31095
2011-12-12 16:16:15 +00:00
Abhinav Gupta
5373f49d27 ICU-8668 C, C++, restrict script to alphabetic in locale name.
X-SVN-Rev: 31031
2011-12-05 20:15:15 +00:00
Yoshito Umaoka
e9503bdade ICU-8909 Fixed various warnings reported by a source code analysis tool.
X-SVN-Rev: 30958
2011-11-14 19:32:51 +00:00
John Emmons
42bbabf646 ICU-7605 Change locale ID canonicalization to not use double-underscore IDs
X-SVN-Rev: 30954
2011-11-11 20:29:33 +00:00