From patchwork Thu Aug 20 15:40:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Max Gautier X-Patchwork-Id: 1348460 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=sourceware.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=tKMjGSoi; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BXTPx4KMWz9sPC for ; Fri, 21 Aug 2020 01:40:53 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D39C63851C3B; Thu, 20 Aug 2020 15:40:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D39C63851C3B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1597938049; bh=WKCXoY5zm0wScByKLQjNngVxxvno8n6t5LTJEUh3AZc=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=tKMjGSoi1GbL7zY4yyK792b3C4rnBnKTfKJcxEs2cNMrVSQn6fOq5+5jxwy8Ie1m+ I/juhMlt7+onIrogX+geGKsvYHOzxvFzvVcan1AAfjcVUYk5aTgOaqPEixC0C119bv P45KWjAFnkIU5g6mNRXaVcBdq6yEPmWKaTO2Fw5M= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mout-y-111.mailbox.org (mout-y-111.mailbox.org [91.198.250.236]) by sourceware.org (Postfix) with ESMTPS id CC0B43851C18 for ; Thu, 20 Aug 2020 15:40:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CC0B43851C18 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (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 4BXTPp4QYgzQkm6; Thu, 20 Aug 2020 17:40:46 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id vkK2RP2lAByY; Thu, 20 Aug 2020 17:40:43 +0200 (CEST) To: libc-alpha@sourceware.org Subject: [PATCH v2 5/5] Add test case for MODIFIED-UTF-7 Date: Thu, 20 Aug 2020 17:40:40 +0200 Message-Id: <20200820154039.234372-1-mg@max.gautier.name> In-Reply-To: <877dttn5to.fsf@igel.home> References: <877dttn5to.fsf@igel.home> MIME-Version: 1.0 X-MBO-SPAM-Probability: X-Rspamd-Score: -8.75 / 15.00 / 15.00 X-Rspamd-Queue-Id: 8E5041798 X-Rspamd-UID: e9fde5 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, 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-Patchwork-Original-From: Max Gautier via Libc-alpha From: Max Gautier Reply-To: Max Gautier Cc: Max Gautier Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" --- Indeed, I inadvertently added the final newline. Here is the fixed version. 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..4b03e4ae57 --- /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- \ No newline at end of file diff --git a/iconvdata/testdata/MODIFIED-UTF-7..UTF8 b/iconvdata/testdata/MODIFIED-UTF-7..UTF8 new file mode 100644 index 0000000000..3b362e578c --- /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≢Α \ No newline at end of file