diff options
| author | Eli Zaretskii | 2013-12-22 20:02:37 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2013-12-22 20:02:37 +0200 |
| commit | 77e5bcc52eadbcfc8e6d9a463782c04f5dc63c25 (patch) | |
| tree | 24cd7facfd058883cea7b8b6bf03f562358a9f6b /admin | |
| parent | a2b89a519573ae5ef301ef5c9b0eb224df8bd960 (diff) | |
| download | emacs-77e5bcc52eadbcfc8e6d9a463782c04f5dc63c25.tar.gz emacs-77e5bcc52eadbcfc8e6d9a463782c04f5dc63c25.zip | |
Fix bug #16216 with 'name' Unicode property of control characters.
admin/unidata/unidata-gen.el (unidata-split-name): Don't give any NAME
to <control> characters: the Unicode Standard says they have no
name.
doc/lispref/nonascii.texi (Character Properties): NAME or OLD-NAME
properties can be nil (there's no empty string).
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/ChangeLog | 6 | ||||
| -rw-r--r-- | admin/unidata/unidata-gen.el | 9 |
2 files changed, 14 insertions, 1 deletions
diff --git a/admin/ChangeLog b/admin/ChangeLog index f49061e35df..7671ae409cd 100644 --- a/admin/ChangeLog +++ b/admin/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-12-22 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * unidata/unidata-gen.el (unidata-split-name): Don't give any NAME | ||
| 4 | to <control> characters: the Unicode Standard says they have no | ||
| 5 | name. (Bug#16216) | ||
| 6 | |||
| 1 | 2013-12-12 David Engster <deng@randomsample.de> | 7 | 2013-12-12 David Engster <deng@randomsample.de> |
| 2 | 8 | ||
| 3 | * grammars/c.by (expr-binop): Add MOD. | 9 | * grammars/c.by (expr-binop): Add MOD. |
diff --git a/admin/unidata/unidata-gen.el b/admin/unidata/unidata-gen.el index fa8f81636e3..ed531eeea25 100644 --- a/admin/unidata/unidata-gen.el +++ b/admin/unidata/unidata-gen.el | |||
| @@ -984,7 +984,14 @@ is the character itself."))) | |||
| 984 | (l nil) | 984 | (l nil) |
| 985 | (idx 0) | 985 | (idx 0) |
| 986 | c) | 986 | c) |
| 987 | (if (= len 0) | 987 | (if (or (= len 0) |
| 988 | ;; Unicode Standard, paragraph 4.8: "For all other | ||
| 989 | ;; Unicode code points of all other types (Control, | ||
| 990 | ;; Private-Use, Surrogate, Noncharacter, and Reserved), | ||
| 991 | ;; the value of the Name property is the null string." | ||
| 992 | ;; We already handle elsewhere all the characters except | ||
| 993 | ;; Cc, Control characters, which are handled here. | ||
| 994 | (string= str "<control>")) | ||
| 988 | nil | 995 | nil |
| 989 | (dotimes (i len) | 996 | (dotimes (i len) |
| 990 | (setq c (aref str i)) | 997 | (setq c (aref str i)) |