diff options
author | Karl Williamson <khw@cpan.org> | 2014-04-26 11:27:52 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2014-05-30 10:24:26 -0600 |
commit | df758df2cf990debef5a719b684d8f2689a0bdcb (patch) | |
tree | ea1352d4465bff5db9d32d6fa3236698c24e6b37 /unicode_constants.h | |
parent | 7fc824585380f310eb2c75afd2cdb021c39dbfe9 (diff) | |
download | perl-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.h | 3 |
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 */ |