From patchwork Tue Mar 16 14:39:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 42588 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5F353385043E; Tue, 16 Mar 2021 14:40:01 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from bumble.maple.relay.mailchannels.net (bumble.maple.relay.mailchannels.net [23.83.214.25]) by sourceware.org (Postfix) with ESMTPS id BC42B385043E for ; Tue, 16 Mar 2021 14:39:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BC42B385043E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gotplt.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=siddhesh@gotplt.org X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 5E7457E3504 for ; Tue, 16 Mar 2021 14:39:57 +0000 (UTC) Received: from pdx1-sub0-mail-a59.g.dreamhost.com (100-96-16-31.trex.outbound.svc.cluster.local [100.96.16.31]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id E36467E36AB for ; Tue, 16 Mar 2021 14:39:56 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org Received: from pdx1-sub0-mail-a59.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.16.31 (trex/6.1.1); Tue, 16 Mar 2021 14:39:57 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|siddhesh@gotplt.org X-MailChannels-Auth-Id: dreamhost X-Grain-Rock: 746065fc63ede409_1615905597243_2368290666 X-MC-Loop-Signature: 1615905597243:2158554724 X-MC-Ingress-Time: 1615905597243 Received: from pdx1-sub0-mail-a59.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a59.g.dreamhost.com (Postfix) with ESMTP id 22E688A6A4 for ; Tue, 16 Mar 2021 07:39:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gotplt.org; h=from:subject :to:references:message-id:date:mime-version:in-reply-to :content-type:content-transfer-encoding; s=gotplt.org; bh=HfEKUO hHN7ZYGD9ZwFi+uvU+CxQ=; b=AnzNj/JXY9rGJ8/lsvdOj69urTGU4inykAgn4B SCxMMvbATfTA+XdR4VdhjMG3Z6smfWoQLQHQOqhXGpkA4aMrn2kntEAfjDRaF2Zg d/lEtrJgvV6IDYIO9+h08uihJnquA+AF7N9NEs0XjMFGmgski00vp/IrRFHHeIEQ BxZao= Received: from [192.168.1.111] (unknown [1.186.101.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: siddhesh@gotplt.org) by pdx1-sub0-mail-a59.g.dreamhost.com (Postfix) with ESMTPSA id 14A928A6A2 for ; Tue, 16 Mar 2021 07:39:54 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a59 From: Siddhesh Poyarekar Subject: [PATCH v3 5/5][pw utf test] Add test case for IMAP-UTF-7 To: libc-alpha@sourceware.org References: <87y2m9agmm.fsf@mid.deneb.enyo.de> <20210125090226.39967-1-mg@max.gautier.name> Message-ID: Date: Tue, 16 Mar 2021 20:09:50 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <20210125090226.39967-1-mg@max.gautier.name> Content-Language: en-US X-Spam-Status: No, score=-3034.5 required=5.0 tests=BAYES_05, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, 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: , Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" --- iconvdata/TESTS | 1 + iconvdata/testdata/IMAP-UTF-7 | 25 +++++++++++++++++++++++++ iconvdata/testdata/IMAP-UTF-7..UTF8 | 25 +++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 iconvdata/testdata/IMAP-UTF-7 create mode 100644 iconvdata/testdata/IMAP-UTF-7..UTF8 diff --git a/iconvdata/TESTS b/iconvdata/TESTS index 74b82f1409..96d425219f 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 +IMAP-UTF-7 IMAP-UTF-7 N UTF8 IBM856 IBM856 N UTF8 IBM922 IBM922 Y UTF8 IBM930 IBM930 N UTF8 diff --git a/iconvdata/testdata/IMAP-UTF-7 b/iconvdata/testdata/IMAP-UTF-7 new file mode 100644 index 0000000000..4b03e4ae57 --- /dev/null +++ b/iconvdata/testdata/IMAP-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/IMAP-UTF-7..UTF8 b/iconvdata/testdata/IMAP-UTF-7..UTF8 new file mode 100644 index 0000000000..3b362e578c --- /dev/null +++ b/iconvdata/testdata/IMAP-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