From d0330a9d6cc605e7027796218ff8c6c894f90228 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 19 Nov 2001 16:58:42 +0000 Subject: #87140# Do not convert ESC from Unicode to ISO-2022-JP verbatim. --- sal/textenc/convertiso2022jp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sal/textenc/convertiso2022jp.c') diff --git a/sal/textenc/convertiso2022jp.c b/sal/textenc/convertiso2022jp.c index 964d46023aeb..e31d1e54d5c3 100644 --- a/sal/textenc/convertiso2022jp.c +++ b/sal/textenc/convertiso2022jp.c @@ -2,9 +2,9 @@ * * $RCSfile: convertiso2022jp.c,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: sb $ $Date: 2001-11-19 17:50:03 $ + * last change: $Author: sb $ $Date: 2001-11-19 17:58:42 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -452,6 +452,8 @@ sal_Size ImplConvertUnicodeToIso2022Jp(ImplTextConverterData const * pData, else goto no_output; } + else if (nChar == 0x1B) + goto bad_input; else if (nChar < 0x80) { if (eSet != IMPL_UNICODE_TO_ISO_2022_JP_SET_ASCII) -- cgit