emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r115693: Fix bug #16216 with 'name' Unicode property


From: Eli Zaretskii
Subject: [Emacs-diffs] trunk r115693: Fix bug #16216 with 'name' Unicode property of control characters.
Date: Sun, 22 Dec 2013 18:03:49 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 115693
revision-id: address@hidden
parent: address@hidden
fixes bug: http://debbugs.gnu.org/16216
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Sun 2013-12-22 20:02:37 +0200
message:
  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).
modified:
  admin/ChangeLog                changelog-20091113204419-o5vbwnq5f7feedwu-2226
  admin/unidata/unidata-gen.el   
unidatagen.el-20091113204419-o5vbwnq5f7feedwu-8382
  doc/lispref/ChangeLog          changelog-20091113204419-o5vbwnq5f7feedwu-6155
  doc/lispref/nonascii.texi      
nonascii.texi-20091113204419-o5vbwnq5f7feedwu-6202
=== modified file 'admin/ChangeLog'
--- a/admin/ChangeLog   2013-12-12 22:09:15 +0000
+++ b/admin/ChangeLog   2013-12-22 18:02:37 +0000
@@ -1,3 +1,9 @@
+2013-12-22  Eli Zaretskii  <address@hidden>
+
+       * unidata/unidata-gen.el (unidata-split-name): Don't give any NAME
+       to <control> characters: the Unicode Standard says they have no
+       name.  (Bug#16216)
+
 2013-12-12  David Engster  <address@hidden>
 
        * grammars/c.by (expr-binop): Add MOD.

=== modified file 'admin/unidata/unidata-gen.el'
--- a/admin/unidata/unidata-gen.el      2013-12-04 16:58:05 +0000
+++ b/admin/unidata/unidata-gen.el      2013-12-22 18:02:37 +0000
@@ -984,7 +984,14 @@
          (l nil)
          (idx 0)
          c)
-      (if (= len 0)
+      (if (or (= len 0)
+             ;; Unicode Standard, paragraph 4.8: "For all other
+             ;; Unicode code points of all other types (Control,
+             ;; Private-Use, Surrogate, Noncharacter, and Reserved),
+             ;; the value of the Name property is the null string."
+             ;; We already handle elsewhere all the characters except
+             ;; Cc, Control characters, which are handled here.
+             (string= str "<control>"))
          nil
        (dotimes (i len)
          (setq c (aref str i))

=== modified file 'doc/lispref/ChangeLog'
--- a/doc/lispref/ChangeLog     2013-12-22 07:11:05 +0000
+++ b/doc/lispref/ChangeLog     2013-12-22 18:02:37 +0000
@@ -1,12 +1,20 @@
+2013-12-22  Eli Zaretskii  <address@hidden>
+
+       * nonascii.texi (Character Properties): NAME or OLD-NAME
+       properties can be nil (there's no empty string).
+
 2013-12-22  Xue Fuqiao  <address@hidden>
 
-       * sequences.texi (Bool-Vectors): Document new bool-vector set operation 
functions.
+       * sequences.texi (Bool-Vectors): Document new bool-vector set
+       operation functions.
 
        * text.texi (Examining Properties): Document `get-pos-property'.
 
-       * variables.texi (Directory Local Variables): Document 
`enable-dir-local-variables'.
+       * variables.texi (Directory Local Variables): Document
+       `enable-dir-local-variables'.
 
-       * debugging.texi (Debugger Commands): Document `debugger-toggle-locals'.
+       * debugging.texi (Debugger Commands): Document
+       `debugger-toggle-locals'.
 
 2013-12-21  Chong Yidong  <address@hidden>
 

=== modified file 'doc/lispref/nonascii.texi'
--- a/doc/lispref/nonascii.texi 2013-12-07 16:51:33 +0000
+++ b/doc/lispref/nonascii.texi 2013-12-22 18:02:37 +0000
@@ -440,7 +440,7 @@
 Corresponds to the @code{Name} Unicode property.  The value is a
 string consisting of upper-case Latin letters A to Z, digits, spaces,
 and hyphen @samp{-} characters.  For unassigned codepoints, the value
-is an empty string.
+is @code{nil}.
 
 @cindex unicode general category
 @item general-category
@@ -522,7 +522,8 @@
 
 @item old-name
 Corresponds to the Unicode @code{Unicode_1_Name} property.  The value
-is a string.  For unassigned codepoints, the value is an empty string.
+is a string.  Unassigned codepoints, and characters that have no value
+for this property, the value is @code{nil}.
 
 @item iso-10646-comment
 Corresponds to the Unicode @code{ISO_Comment} property.  The value is


reply via email to

[Prev in Thread] Current Thread [Next in Thread]