From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout-y-111.mailbox.org (mout-y-111.mailbox.org [91.198.250.236]) by sourceware.org (Postfix) with ESMTPS id 050B53861884 for ; Wed, 19 Aug 2020 23:05:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 050B53861884 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-y-111.mailbox.org (Postfix) with ESMTPS id 4BX3Kx5rNnzQkm0; Thu, 20 Aug 2020 01:05:57 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id hcR5M_GfNjR5; Thu, 20 Aug 2020 01:05:54 +0200 (CEST) From: Max Gautier To: libc-alpha@sourceware.org Cc: Max Gautier Subject: [PATCH 5/5] Add test case for MODIFIED-UTF-7 Date: Thu, 20 Aug 2020 01:07:02 +0200 Message-Id: <20200819230702.229822-6-mg@max.gautier.name> In-Reply-To: <20200819230702.229822-1-mg@max.gautier.name> References: <20200819230702.229822-1-mg@max.gautier.name> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MBO-SPAM-Probability: X-Rspamd-Score: -8.48 / 15.00 / 15.00 X-Rspamd-Queue-Id: E388B3CD X-Rspamd-UID: baa859 X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_50, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, KAM_NUMSUBJECT, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Aug 2020 23:06:00 -0000 --- Not sure if make check test stateful characters sets. I'm not very familiar with iconv and glibc build system. iconvdata/TESTS | 1 + iconvdata/testdata/MODIFIED-UTF-7 | 25 +++++++++++++++++++++++++ iconvdata/testdata/MODIFIED-UTF-7..UTF8 | 25 +++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 iconvdata/testdata/MODIFIED-UTF-7 create mode 100644 iconvdata/testdata/MODIFIED-UTF-7..UTF8 diff --git a/iconvdata/TESTS b/iconvdata/TESTS index ef3bd43454..096598f20e 100644 --- a/iconvdata/TESTS +++ b/iconvdata/TESTS @@ -95,6 +95,7 @@ EUC-TW EUC-TW Y UTF8 GBK GBK Y UTF8 BIG5HKSCS BIG5HKSCS Y UTF8 UTF-7 UTF-7 N UTF8 +MODIFIED-UTF-7 MODIFIED-UTF-7 N UTF8 IBM856 IBM856 N UTF8 IBM922 IBM922 Y UTF8 IBM930 IBM930 N UTF8 diff --git a/iconvdata/testdata/MODIFIED-UTF-7 b/iconvdata/testdata/MODIFIED-UTF-7 new file mode 100644 index 0000000000..02d5681dac --- /dev/null +++ b/iconvdata/testdata/MODIFIED-UTF-7 @@ -0,0 +1,25 @@ +&EqASGxItEps- Amharic +&AQ0-esky Czech +Dansk Danish +English English +Suomi Finnish +Fran&AOc-ais French +Deutsch German +&A5UDuwO7A7cDvQO5A7oDrA- Greek +&BeIF0QXoBdkF6g- Hebrew +Italiano Italian +Norsk Norwegian +&BCAEQwRBBEEEOgQ4BDk- Russian +Espa&APE-ol Spanish +Svenska Swedish +&DiAOMg4pDjIORA4XDiI- Thai +T&APw-rk&AOc-e Turkish +Ti&Hr8-ng Vi&Hsc-t Vietnamese +&ZeVnLIqe- Japanese +&Ti1lhw- Chinese +&1VyuAA- Korean + +// The last line of this file is missing the end-of-line terminator +// on purpose, in order to test that the conversion empties the bit buffer +// and shifts back to the initial state at the end of the conversion. +A&ImIDkQ- diff --git a/iconvdata/testdata/MODIFIED-UTF-7..UTF8 b/iconvdata/testdata/MODIFIED-UTF-7..UTF8 new file mode 100644 index 0000000000..3d6ba8b535 --- /dev/null +++ b/iconvdata/testdata/MODIFIED-UTF-7..UTF8 @@ -0,0 +1,25 @@ +አማርኛ Amharic +česky Czech +Dansk Danish +English English +Suomi Finnish +Français French +Deutsch German +Ελληνικά Greek +עברית Hebrew +Italiano Italian +Norsk Norwegian +Русский Russian +Español Spanish +Svenska Swedish +ภาษาไทย Thai +Türkçe Turkish +Tiếng Việt Vietnamese +日本語 Japanese +中文 Chinese +한글 Korean + +// The last line of this file is missing the end-of-line terminator +// on purpose, in order to test that the conversion empties the bit buffer +// and shifts back to the initial state at the end of the conversion. +A≢Α -- 2.28.0