From 3c2b2fcba1af380e364ca5be1cd42495caf25e89 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Thu, 16 Dec 2021 14:30:36 -0700 Subject: Change pack U behavior for EBCDIC This effectively reverts 3ece276e6c0. It turns out this was a bad idea to make U mean the non-native official Unicode code points. It may seem to make sense to do so, but broke multiple CPAN modules which were using U the previous way. This commit has no effect on ASCII-platform functioning. --- pod/perlfunc.pod | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pod/perlfunc.pod') diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index fbe465bbf5..762f12cb72 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -5247,7 +5247,10 @@ of values, as follows: u A uuencoded string. U A Unicode character number. Encodes to a character in char- acter mode and UTF-8 (or UTF-EBCDIC in EBCDIC platforms) in - byte mode. + byte mode. Also on EBCDIC platforms, the character number will + be the native EBCDIC value for character numbers below 256. + This allows most programs using this feature to not have to + care which type of platform they are running on. w A BER compressed integer (not an ASN.1 BER, see perlpacktut for details). Its bytes represent an unsigned integer in -- cgit v1.2.1