summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2006-07-22 21:51:48 +0300
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-07-23 13:04:10 +0000
commite294cc5d7355a434d6b698c777674e1b7d4d4583 (patch)
tree7149b707cac3dbe5e8fb910a0b8ae2f73b451bfe /utf8.c
parent8c06321bcee4c3ffba180fe51c1785ca0a328fdd (diff)
downloadperl-e294cc5d7355a434d6b698c777674e1b7d4d4583.tar.gz
z/OS: pp_sys.c, reg*.c, toke.c, utf8.c
Message-ID: <44C24994.6020008@iki.fi> p4raw-id: //depot/perl@28607
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/utf8.c b/utf8.c
index b62e552aac..3b2297a993 100644
--- a/utf8.c
+++ b/utf8.c
@@ -896,7 +896,11 @@ Perl_utf16_to_utf8(pTHX_ U8* p, U8* d, I32 bytelen, I32 *newlen)
UV uv = (p[0] << 8) + p[1]; /* UTF-16BE */
p += 2;
if (uv < 0x80) {
+#ifdef EBCDIC
+ *d++ = UNI_TO_NATIVE(uv);
+#else
*d++ = (U8)uv;
+#endif
continue;
}
if (uv < 0x800) {