summaryrefslogtreecommitdiff
path: root/sal/textenc/convertiso2022jp.c
diff options
context:
space:
mode:
authorStephan Bergmann <sb@openoffice.org>2001-11-19 16:58:42 +0000
committerStephan Bergmann <sb@openoffice.org>2001-11-19 16:58:42 +0000
commitd0330a9d6cc605e7027796218ff8c6c894f90228 (patch)
treec9844fceb9342e33da88d799871f4bd831f3c1fd /sal/textenc/convertiso2022jp.c
parent00f76e0fc50b7b1203759335845db7ece0201919 (diff)
#87140# Do not convert ESC from Unicode to ISO-2022-JP verbatim.
Diffstat (limited to 'sal/textenc/convertiso2022jp.c')
-rw-r--r--sal/textenc/convertiso2022jp.c6
1 files changed, 4 insertions, 2 deletions
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)