From e205a6b1ba20fd24f9cb2b461095d45fc30e9009 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 18 Nov 2008 13:54:08 +0000 Subject: Rather less hideous approach to error detection and input pointer maintenence. We now simply decode one character at a time and check for error afterwards. This has the benefit of being less code, clearer, less likely to crash if encoding state changes involve memory (de)allocation, and removes the reliance on UnicodeLib internals. It's probably slower, however, but correctness is more important here. Fix ISO-2022-JP-2 test data to not include characters from the JIS X 0201-1976 Kana set -- this set is not used in ISO-2022-JP-2. Implement verbose flag in *Iconv. svn path=/trunk/iconv/; revision=5712 --- test/GNU/ISO-2022-JP-2-snippet | 2 +- test/GNU/ISO-2022-JP-2-snippet.UTF-8 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/GNU/ISO-2022-JP-2-snippet b/test/GNU/ISO-2022-JP-2-snippet index 3e297b8..40fae83 100644 --- a/test/GNU/ISO-2022-JP-2-snippet +++ b/test/GNU/ISO-2022-JP-2-snippet @@ -1,4 +1,4 @@ -Japanese ($BF|K\8l(B) $B$3$s$K$A$O(B, (I:]FAJ(B +Japanese ($BF|K\8l(B) $B$3$s$K$A$O(B JIS -- $B855$(B $B3+H/(B Just for a test of JISX0212: $BqV$(DiQ(B (the second character is of JISX0212) Chinese ($BCfJ8(B,$BIaDL$A;0(B,$A::So(B) $(D0_$B9%(B diff --git a/test/GNU/ISO-2022-JP-2-snippet.UTF-8 b/test/GNU/ISO-2022-JP-2-snippet.UTF-8 index 6c63925..99d453b 100644 --- a/test/GNU/ISO-2022-JP-2-snippet.UTF-8 +++ b/test/GNU/ISO-2022-JP-2-snippet.UTF-8 @@ -1,4 +1,4 @@ -Japanese (日本語) こんにちは, コンニチハ +Japanese (日本語) こんにちは JIS -- 元気 開発 Just for a test of JISX0212: 騏驎 (the second character is of JISX0212) Chinese (中文,普通话,汉语) 你好 -- cgit v1.2.3