summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorSimon Cozens <simon@netthink.co.uk>2000-08-02 02:37:17 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-02 13:34:36 +0000
commit96c7109f147464908a4393d36c8da8315dbbafe4 (patch)
tree6b78582f990491f9684d1402d19a505279a8d4ae /doop.c
parent624590503086714d933ceb5a7947b31f6a66beb9 (diff)
downloadperl-96c7109f147464908a4393d36c8da8315dbbafe4.tar.gz
The tr utf8 patching continues.
Subject: Re: #6469, too many tests claimed in require.t Message-ID: <slrn8of2at.81o.simon@justanother.perlhacker.org> (the logic of the test was the wrong way round in the patch) p4raw-id: //depot/perl@6491
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/doop.c b/doop.c
index 013991128f..ba8a7e5ceb 100644
--- a/doop.c
+++ b/doop.c
@@ -23,12 +23,14 @@
#define HALF_UTF8_UPGRADE(start,end) \
STMT_START { \
+ if ((start)<(end)) { \
U8* NeWsTr; \
STRLEN LeN = (end) - (start); \
NeWsTr = bytes_to_utf8(start, &LeN); \
Safefree(start); \
(start) = NeWsTr; \
(end) = (start) + LeN; \
+ } \
} STMT_END
STATIC I32