mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
unicode-gen: include standard comment file header
We deployed this header to all the locale files, so make sure we include it in the generated ones too so we don't lose it.
This commit is contained in:
parent
6a54bcda7a
commit
277da2ab88
@ -1,3 +1,14 @@
|
||||
2016-06-11 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* unicode-gen/gen_translit_circle.py (output_head): Add write of
|
||||
unicode_utils.COMMENT_HEADER.
|
||||
* unicode-gen/gen_translit_cjk_compat.py (output_head): Likewise.
|
||||
* unicode-gen/gen_translit_combining.py (output_head): Likewise.
|
||||
* unicode-gen/gen_translit_compat.py (output_head): Likewise.
|
||||
* unicode-gen/gen_translit_font.py (output_head): Likewise.
|
||||
* unicode-gen/gen_translit_fraction.py (output_head): Likewise.
|
||||
* unicode-gen/unicode_utils.py (COMMENT_HEADER): Define.
|
||||
|
||||
2016-06-11 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
[BZ #19133]
|
||||
|
@ -62,6 +62,7 @@ def output_head(translit_file, unicode_version, head=''):
|
||||
else:
|
||||
translit_file.write('escape_char /\n')
|
||||
translit_file.write('comment_char %\n')
|
||||
translit_file.write(unicode_utils.COMMENT_HEADER)
|
||||
translit_file.write('\n')
|
||||
translit_file.write('% Transliterations of encircled characters.\n')
|
||||
translit_file.write('% Generated automatically from UnicodeData.txt '
|
||||
|
@ -63,6 +63,7 @@ def output_head(translit_file, unicode_version, head=''):
|
||||
else:
|
||||
translit_file.write('escape_char /\n')
|
||||
translit_file.write('comment_char %\n')
|
||||
translit_file.write(unicode_utils.COMMENT_HEADER)
|
||||
translit_file.write('\n')
|
||||
translit_file.write('% Transliterations of CJK compatibility ')
|
||||
translit_file.write('characters.\n')
|
||||
|
@ -62,6 +62,7 @@ def output_head(translit_file, unicode_version, head=''):
|
||||
else:
|
||||
translit_file.write('escape_char /\n')
|
||||
translit_file.write('comment_char %\n')
|
||||
translit_file.write(unicode_utils.COMMENT_HEADER)
|
||||
translit_file.write('\n')
|
||||
translit_file.write('% Transliterations that remove all ')
|
||||
translit_file.write('combining characters (accents,\n')
|
||||
|
@ -62,6 +62,7 @@ def output_head(translit_file, unicode_version, head=''):
|
||||
else:
|
||||
translit_file.write('escape_char /\n')
|
||||
translit_file.write('comment_char %\n')
|
||||
translit_file.write(unicode_utils.COMMENT_HEADER)
|
||||
translit_file.write('\n')
|
||||
translit_file.write('% Transliterations of compatibility characters ')
|
||||
translit_file.write('and ligatures.\n')
|
||||
|
@ -62,6 +62,7 @@ def output_head(translit_file, unicode_version, head=''):
|
||||
else:
|
||||
translit_file.write('escape_char /\n')
|
||||
translit_file.write('comment_char %\n')
|
||||
translit_file.write(unicode_utils.COMMENT_HEADER)
|
||||
translit_file.write('\n')
|
||||
translit_file.write('% Transliterations of font equivalents.\n')
|
||||
translit_file.write('% Generated automatically from UnicodeData.txt '
|
||||
|
@ -62,6 +62,7 @@ def output_head(translit_file, unicode_version, head=''):
|
||||
else:
|
||||
translit_file.write('escape_char /\n')
|
||||
translit_file.write('comment_char %\n')
|
||||
translit_file.write(unicode_utils.COMMENT_HEADER)
|
||||
translit_file.write('\n')
|
||||
translit_file.write('% Transliterations of fractions.\n')
|
||||
translit_file.write('% Generated automatically from UnicodeData.txt '
|
||||
|
@ -25,6 +25,17 @@ Unicode data for glibc from upstream Unicode data files.
|
||||
import sys
|
||||
import re
|
||||
|
||||
|
||||
# Common locale header.
|
||||
COMMENT_HEADER = """
|
||||
% This file is part of the GNU C Library and contains locale data.
|
||||
% The Free Software Foundation does not claim any copyright interest
|
||||
% in the locale data contained in this file. The foregoing does not
|
||||
% affect the license of the GNU C Library as a whole. It does not
|
||||
% exempt you from the conditions of the license if your use would
|
||||
% otherwise be governed by that license.
|
||||
"""
|
||||
|
||||
# Dictionary holding the entire contents of the UnicodeData.txt file
|
||||
#
|
||||
# Contents of this dictionary look like this:
|
||||
|
Loading…
Reference in New Issue
Block a user