summaryrefslogtreecommitdiff
path: root/unicode_constants.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2014-04-26 11:27:52 -0600
committerKarl Williamson <khw@cpan.org>2014-05-30 10:24:26 -0600
commitdf758df2cf990debef5a719b684d8f2689a0bdcb (patch)
treeea1352d4465bff5db9d32d6fa3236698c24e6b37 /unicode_constants.h
parent7fc824585380f310eb2c75afd2cdb021c39dbfe9 (diff)
downloadperl-df758df2cf990debef5a719b684d8f2689a0bdcb.tar.gz
Deprecate NBSP in \N{...} names
This is currently allowed, but is non-graphic, and is indistinguishable from a regular space. I was the one who initially allowed it, and did so out of ignorance of the negative consequences of doing so. There is no other precedent for including it.
Diffstat (limited to 'unicode_constants.h')
-rw-r--r--unicode_constants.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/unicode_constants.h b/unicode_constants.h
index 2ae9d77646..d52b7ed28e 100644
--- a/unicode_constants.h
+++ b/unicode_constants.h
@@ -37,6 +37,9 @@
#define BOM_UTF8_FIRST_BYTE 0xEF /* U+FEFF */
#define BOM_UTF8_TAIL "\xBB\xBF" /* U+FEFF */
+#define NBSP_NATIVE 0xA0 /* U+00A0 */
+#define NBSP_UTF8 "\xC2\xA0" /* U+00A0 */
+
#define DEL_NATIVE 0x7F /* U+007F */
#define CR_NATIVE 0x0D /* U+000D */
#define LF_NATIVE 0x0A /* U+000A */