]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Amendments to Unicode 7 update.
authorAlexandre Oliva <aoliva@redhat.com>
Mon, 23 Feb 2015 14:22:37 +0000 (11:22 -0300)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 23 Feb 2015 14:35:24 +0000 (11:35 -0300)
for  ChangeLog

* include/stdc-predef.h (__STDC_ISO_10646__): Update to
201304L, for Unicode 7.

for  localedata/ChangeLog

* unicode-gen/ctype_compatibility.py: Use date ranges in
copyright notice.
* unicode-gen/ctype_compatibility_test_cases.py: Likewise.
* unicode-gen/gen_unicode_ctype.py: Likewise.
* unicode-gen/utf8_compatibility.py: Likewise.
* unicode-gen/utf8_gen.py: Likewise.  Use upper case for
global variables, use tuples for global constant arrays.  From
Mike FABIAN.  Suggested by Mike Frysinger <vapier@gentoo.org>.

ChangeLog
include/stdc-predef.h
localedata/ChangeLog
localedata/unicode-gen/ctype_compatibility.py
localedata/unicode-gen/ctype_compatibility_test_cases.py
localedata/unicode-gen/gen_unicode_ctype.py
localedata/unicode-gen/utf8_compatibility.py
localedata/unicode-gen/utf8_gen.py

index 0a059097e40d35e95e504302f6e7bcc096578aa3..0aa5e1c7e1660a97966c146f9ad2d613dc1351e8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-23  Alexandre Oliva <aoliva@redhat.com>
+
+       * include/stdc-predef.h (__STDC_ISO_10646__): Update to
+       201304L, for Unicode 7.
+
 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #17836]
index 1d6a4eb39dad9aa6d66b32587e81b6056368b436..e5f1139003f76a8175f8b86dbb310dc71ccbfedc 100644 (file)
 # define __STDC_IEC_559_COMPLEX__      1
 #endif
 
-/* wchar_t uses ISO/IEC 10646 (2nd ed., published 2011-03-15) /
-   Unicode 6.0.  */
-#define __STDC_ISO_10646__             201103L
+/* wchar_t uses Unicode 7.0.0.  Version 7.0 of the Unicode Standard is
+   synchronized with ISO/IEC 10646:2012, plus Amendments 1 (published
+   on April, 2013) and 2 (not yet published as of February, 2015).
+   Additionally, it includes the accelerated publication of U+20BD
+   RUBLE SIGN.  Therefore Unicode 7.0.0 is between 10646:2012 and
+   10646:2014, and so we use the date ISO/IEC 10646:2012 Amd.1 was
+   published.  */
+#define __STDC_ISO_10646__             201304L
 
 /* We do not support C11 <threads.h>.  */
 #define __STDC_NO_THREADS__            1
index 58063e0bbd417db6e97b67547dee86de58c060a9..ceb373f1be36dc6dd55e1ca3d7e14420a9f037ba 100644 (file)
@@ -1,3 +1,14 @@
+2015-02-23  Alexandre Oliva <aoliva@redhat.com>
+
+       * unicode-gen/ctype_compatibility.py: Use date ranges in
+       copyright notice.
+       * unicode-gen/ctype_compatibility_test_cases.py: Likewise.
+       * unicode-gen/gen_unicode_ctype.py: Likewise.
+       * unicode-gen/utf8_compatibility.py: Likewise.
+       * unicode-gen/utf8_gen.py: Likewise.  Use upper case for
+       global variables, use tuples for global constant arrays.  From
+       Mike FABIAN.  Suggested by Mike Frysinger <vapier@gentoo.org>.
+
 2015-02-20  Alexandre Oliva <aoliva@redhat.com>
 
        [BZ #17588]
index 19e9ee5176277e2696a2789e939fb09533c8d0b9..0d67f2918671193fcaf4eecdfb32797e1a60c5ee 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/python3
 # -*- coding: utf-8 -*-
-# Copyright (C) 20142015 Free Software Foundation, Inc.
+# Copyright (C) 2014-2015 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 #
 # The GNU C Library is free software; you can redistribute it and/or
index ab7f6ddc8764e8609225fdc5ab08917f32f6c16b..34e6de4f4048b92b11f113278ae55960881a7d9e 100644 (file)
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-# Copyright (C) 20142015 Free Software Foundation, Inc.
+# Copyright (C) 2014-2015 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 #
 # The GNU C Library is free software; you can redistribute it and/or
index 559af7957a9f15d6a7b095f5d91d80367dba9e32..0c74f2a849ef9fd30ada2b6aac209b86f22dbbc7 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/python3
 #
 # Generate a Unicode conforming LC_CTYPE category from a UnicodeData file.
-# Copyright (C) 20142015 Free Software Foundation, Inc.
+# Copyright (C) 2014-2015 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 # Based on gen-unicode-ctype.c by Bruno Haible <haible@clisp.cons.org>, 2000.
 #
index e11327ba82c29029562bf624349980c14720eaac..b84a1eb3de8f182ca0e32397257113d1fb1a9871 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/python3
 # -*- coding: utf-8 -*-
-# Copyright (C) 20142015 Free Software Foundation, Inc.
+# Copyright (C) 2014-2015 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 #
 # The GNU C Library is free software; you can redistribute it and/or
index 670a628d2e124d219eaba968a1811af3193cecad..f1b88f5b29410e5d85d0ef7015ed222be1b89b78 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/python3
 # -*- coding: utf-8 -*-
-# Copyright (C) 20142015 Free Software Foundation, Inc.
+# Copyright (C) 2014-2015 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 #
 # The GNU C Library is free software; you can redistribute it and/or
@@ -33,21 +33,21 @@ import re
 # Auxiliary tables for Hangul syllable names, see the Unicode 3.0 book,
 # sections 3.11 and 4.4.
 
-jamo_initial_short_name = [
+JAMO_INITIAL_SHORT_NAME = (
     'G', 'GG', 'N', 'D', 'DD', 'R', 'M', 'B', 'BB', 'S', 'SS', '', 'J', 'JJ',
     'C', 'K', 'T', 'P', 'H'
-]
+)
 
-jamo_medial_short_name = [
+JAMO_MEDIAL_SHORT_NAME = (
     'A', 'AE', 'YA', 'YAE', 'EO', 'E', 'YEO', 'YE', 'O', 'WA', 'WAE', 'OE',
     'YO', 'U', 'WEO', 'WE', 'WI', 'YU', 'EU', 'YI', 'I'
-]
+)
 
-jamo_final_short_name = [
+JAMO_FINAL_SHORT_NAME = (
     '', 'G', 'GG', 'GS', 'N', 'NI', 'NH', 'D', 'L', 'LG', 'LM', 'LB', 'LS',
     'LT', 'LP', 'LH', 'M', 'B', 'BS', 'S', 'SS', 'NG', 'J', 'C', 'K', 'T',
     'P', 'H'
-]
+)
 
 def ucs_symbol(code_point):
     '''Return the UCS symbol string for a Unicode character.'''
@@ -74,9 +74,9 @@ def process_range(start, end, outfile, name):
             index2, index3 = divmod(i - 0xaC00, 28)
             index1, index2 = divmod(index2, 21)
             hangul_syllable_name = 'HANGUL SYLLABLE ' \
-                                   + jamo_initial_short_name[index1] \
-                                   + jamo_medial_short_name[index2] \
-                                   + jamo_final_short_name[index3]
+                                   + JAMO_INITIAL_SHORT_NAME[index1] \
+                                   + JAMO_MEDIAL_SHORT_NAME[index2] \
+                                   + JAMO_FINAL_SHORT_NAME[index3]
             outfile.write('{:<11s} {:<12s} {:s}\n'.format(
                 ucs_symbol(i), convert_to_hex(i),
                 hangul_syllable_name))