Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b8350f1c
Commit
b8350f1c
authored
Sep 29, 2012
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upgrade to UCD 6.2
parent
ede18499
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11524 additions
and
11514 deletions
+11524
-11514
Doc/library/unicodedata.rst
Doc/library/unicodedata.rst
+2
-2
Lib/test/test_unicodedata.py
Lib/test/test_unicodedata.py
+1
-1
Misc/NEWS
Misc/NEWS
+2
-0
Modules/unicodedata_db.h
Modules/unicodedata_db.h
+307
-309
Modules/unicodename_db.h
Modules/unicodename_db.h
+11201
-11198
Objects/unicodetype_db.h
Objects/unicodetype_db.h
+10
-3
Tools/unicode/makeunicodedata.py
Tools/unicode/makeunicodedata.py
+1
-1
No files found.
Doc/library/unicodedata.rst
View file @
b8350f1c
...
...
@@ -15,8 +15,8 @@
This module provides access to the Unicode Character Database (UCD) which
defines character properties for all Unicode characters. The data contained in
this database is compiled from the `UCD version 6.
1
.0
<http://www.unicode.org/Public/6.
1
.0/ucd>`_.
this database is compiled from the `UCD version 6.
2
.0
<http://www.unicode.org/Public/6.
2
.0/ucd>`_.
The module uses the same names and symbols as defined by Unicode
Standard Annex #44, `"Unicode Character Database"
...
...
Lib/test/test_unicodedata.py
View file @
b8350f1c
...
...
@@ -80,7 +80,7 @@ class UnicodeDatabaseTest(unittest.TestCase):
class
UnicodeFunctionsTest
(
UnicodeDatabaseTest
):
# update this, if the database changes
expectedchecksum
=
'
17fe2f12b788e4fff5479b469c4404bb6ecf841f
'
expectedchecksum
=
'
ebd64e81553c9cb37f424f5616254499fcd8849e
'
def
test_function_checksum
(
self
):
data
=
[]
h
=
hashlib
.
sha1
()
...
...
Misc/NEWS
View file @
b8350f1c
...
...
@@ -10,6 +10,8 @@ What's New in Python 3.4.0 Alpha 1?
Core and Builtins
-----------------
- Upgrade Unicode data (UCD) to version 6.2.
Library
-------
...
...
Modules/unicodedata_db.h
View file @
b8350f1c
This diff is collapsed.
Click to expand it.
Modules/unicodename_db.h
View file @
b8350f1c
This diff is collapsed.
Click to expand it.
Objects/unicodetype_db.h
View file @
b8350f1c
...
...
@@ -1919,7 +1919,7 @@ static unsigned short index2[] = {
246
,
247
,
248
,
249
,
250
,
251
,
5
,
5
,
5
,
5
,
5
,
95
,
245
,
26
,
22
,
23
,
246
,
247
,
248
,
249
,
250
,
251
,
5
,
5
,
5
,
5
,
5
,
0
,
95
,
95
,
95
,
95
,
95
,
95
,
95
,
95
,
95
,
95
,
95
,
95
,
95
,
0
,
0
,
0
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
25
,
25
,
25
,
25
,
25
,
25
,
25
,
25
,
25
,
25
,
25
,
25
,
25
,
6
,
6
,
6
,
6
,
25
,
6
,
6
,
6
,
25
,
25
,
25
,
25
,
25
,
25
,
25
,
25
,
25
,
25
,
25
,
25
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
5
,
5
,
113
,
5
,
5
,
...
...
@@ -2593,10 +2593,10 @@ static unsigned short index2[] = {
0
,
0
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
252
,
252
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
252
,
252
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
141
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
5
,
5
,
5
,
5
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
55
,
...
...
@@ -2925,6 +2925,9 @@ static unsigned short index2[] = {
double
_PyUnicode_ToNumeric
(
Py_UCS4
ch
)
{
switch
(
ch
)
{
case
0x12456
:
case
0x12457
:
return
(
double
)
-
1
.
0
;
case
0x0F33
:
return
(
double
)
-
1
.
0
/
2
.
0
;
case
0x0030
:
...
...
@@ -3427,6 +3430,8 @@ double _PyUnicode_ToNumeric(Py_UCS4 ch)
return
(
double
)
20000
.
0
;
case
0x3251
:
return
(
double
)
21
.
0
;
case
0x12432
:
return
(
double
)
216000
.
0
;
case
0x3252
:
return
(
double
)
22
.
0
;
case
0x3253
:
...
...
@@ -3721,6 +3726,8 @@ double _PyUnicode_ToNumeric(Py_UCS4 ch)
return
(
double
)
42
.
0
;
case
0x32B8
:
return
(
double
)
43
.
0
;
case
0x12433
:
return
(
double
)
432000
.
0
;
case
0x32B9
:
return
(
double
)
44
.
0
;
case
0x32BA
:
...
...
Tools/unicode/makeunicodedata.py
View file @
b8350f1c
...
...
@@ -37,7 +37,7 @@ SCRIPT = sys.argv[0]
VERSION
=
"3.2"
# The Unicode Database
UNIDATA_VERSION
=
"6.
1
.0"
UNIDATA_VERSION
=
"6.
2
.0"
UNICODE_DATA
=
"UnicodeData%s.txt"
COMPOSITION_EXCLUSIONS
=
"CompositionExclusions%s.txt"
EASTASIAN_WIDTH
=
"EastAsianWidth%s.txt"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment