diff options
| author | Eli Zaretskii | 2025-09-13 17:52:30 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2025-09-13 17:52:30 +0300 |
| commit | fd5d35407abb784344c9bf4e0ae731c72df79d57 (patch) | |
| tree | b0a62577488c069c0222c5b312cfeebb8c5d8a89 | |
| parent | 125b3588c9a69625aa72cb3a86c332a804d02458 (diff) | |
| download | emacs-fd5d35407abb784344c9bf4e0ae731c72df79d57.tar.gz emacs-fd5d35407abb784344c9bf4e0ae731c72df79d57.zip | |
Fix Unicode-related tests
* test/lisp/international/mule-tests.el
(mule-cmds-tests--ucs-names-missing-names): Update no-name regions
of codepoints to Unicode 17.0.
* lisp/international/mule-cmds.el (ucs-names): Fix comments.
* admin/notes/unicode: Update instructions.
| -rw-r--r-- | admin/notes/unicode | 8 | ||||
| -rw-r--r-- | lisp/international/mule-cmds.el | 6 | ||||
| -rw-r--r-- | test/lisp/international/mule-tests.el | 3 |
3 files changed, 14 insertions, 3 deletions
diff --git a/admin/notes/unicode b/admin/notes/unicode index d111de2d7e8..ae94b5c0a3f 100644 --- a/admin/notes/unicode +++ b/admin/notes/unicode | |||
| @@ -102,6 +102,14 @@ Specifically, the values of 'ucs-normalize-composition-exclusions' and | |||
| 102 | 'check-range", defined at the beginning of ucs-normalize.el, should be | 102 | 'check-range", defined at the beginning of ucs-normalize.el, should be |
| 103 | verified against the latest Unicode data files. | 103 | verified against the latest Unicode data files. |
| 104 | 104 | ||
| 105 | Run the ucs-names test: | ||
| 106 | |||
| 107 | make -C test lisp/international/mule-tests | ||
| 108 | |||
| 109 | If it fails, the exclusion ranges of codepoints in | ||
| 110 | 'mule-cmds-tests--ucs-names-missing-names' may need to be updated to the | ||
| 111 | added Unicode codepoints. | ||
| 112 | |||
| 105 | Next, test normalization functions against NormalizationTests.txt, | 113 | Next, test normalization functions against NormalizationTests.txt, |
| 106 | in the top-level directory run: | 114 | in the top-level directory run: |
| 107 | 115 | ||
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index f75ee2f0f3f..d3224498a95 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -3105,12 +3105,14 @@ on encoding." | |||
| 3105 | (#x16100 . #x16139) | 3105 | (#x16100 . #x16139) |
| 3106 | ;; (#x1613A . #x167FF) unused | 3106 | ;; (#x1613A . #x167FF) unused |
| 3107 | (#x16800 . #x16F9F) | 3107 | (#x16800 . #x16F9F) |
| 3108 | (#x16FE0 . #x16FF1) | 3108 | (#x16FE0 . #x16FF6) |
| 3109 | ;; (#x17000 . #x187FF) Tangut Ideographs | 3109 | ;; (#x17000 . #x187FF) Tangut Ideographs |
| 3110 | ;; (#x18800 . #x18AFF) Tangut Components | 3110 | ;; (#x18800 . #x18AFF) Tangut Components |
| 3111 | ;; (#x18B00 . #x18CFF) Khitan Small Script | 3111 | ;; (#x18B00 . #x18CFF) Khitan Small Script |
| 3112 | ;; (#x18D00 . #x18D1E) Tangut Ideograph Supplement | 3112 | ;; (#x18D00 . #x18D1E) Tangut Ideograph Supplement |
| 3113 | ;; (#x18D80 . #x18DFF) Tangut Components | 3113 | ;; (#x18D1F . #x18D7F) unused |
| 3114 | ;; (#x18D80 . #x18DF2) Tangut Components | ||
| 3115 | ;; (#x18DF3 . #x18DFF) unused | ||
| 3114 | (#x1AFF0 . #x1B122) | 3116 | (#x1AFF0 . #x1B122) |
| 3115 | ;; (#x1B123 . #x1B131) unused | 3117 | ;; (#x1B123 . #x1B131) unused |
| 3116 | (#x1B132 . #x1B132) | 3118 | (#x1B132 . #x1B132) |
diff --git a/test/lisp/international/mule-tests.el b/test/lisp/international/mule-tests.el index d1434d5a873..d45c89b8a94 100644 --- a/test/lisp/international/mule-tests.el +++ b/test/lisp/international/mule-tests.el | |||
| @@ -69,7 +69,8 @@ | |||
| 69 | (dotimes (u (1+ (max-char 'ucs))) | 69 | (dotimes (u (1+ (max-char 'ucs))) |
| 70 | (when-let* ((name (get-char-code-property u 'name))) | 70 | (when-let* ((name (get-char-code-property u 'name))) |
| 71 | (when (and (not (<= #xD800 u #xDFFF)) | 71 | (when (and (not (<= #xD800 u #xDFFF)) |
| 72 | (not (<= #x18800 u #x18AFF)) | 72 | (not (<= #x18800 u #x18D1E)) |
| 73 | (not (<= #x18D80 u #x18DF2)) | ||
| 73 | (not (char-from-name name))) | 74 | (not (char-from-name name))) |
| 74 | (push (format "%X" u) code-points)))) | 75 | (push (format "%X" u) code-points)))) |
| 75 | (setq code-points (nreverse code-points)) | 76 | (setq code-points (nreverse code-points)) |