From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [216.205.24.74]) by sourceware.org (Postfix) with ESMTP id 42971385B834 for ; Mon, 30 Mar 2020 14:36:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 42971385B834 Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-301-x-aTwrFMObij1bRRZZX_zw-1; Mon, 30 Mar 2020 10:36:05 -0400 X-MC-Unique: x-aTwrFMObij1bRRZZX_zw-1 Received: by mail-qv1-f69.google.com with SMTP id u19so14482872qvv.9 for ; Mon, 30 Mar 2020 07:36:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=f0cxysh31Cj0nF2mTfulcmVOP7fc9Txv4XhKHIWHQ/Y=; b=ADG+RhYjKh9oI1nJxd9eVE/7F1KoW6U7o3alcaIdIc0FxYykzi5JHhWM5GO82gr5m3 OvJJ7ifnBdm8oIUXBfwDfciv51X3UZDZX5UQk1GTwr+JCftalb7OdB63BfU2HOXVYErP IBXdQng489Vux6dgw1R28upweOzfxhclOwv61ib57Sqelfhs/xeb5LM83G9Gj5gAaOtR Vido6BvcbKx2JagwGXdJXJi6BBEeBbQECSw09UrehZYCIud7lTspBUiLciaF8Cq34Xba t2eMYsBVD05byhy69JMQBgK/TtzdvXVaxTL3BWHiCQ0PRycrEeWcnXMUSiyxCJS2oQDY b0ow== X-Gm-Message-State: ANhLgQ0b1CK2RuRWhNP1aBBiv8SGnO1thu8IcE4NCpMSQNqyT+EfKFan 4MAj8WORA+OLQ7H6faAh+wbHT+ouDWAAAcvnAIAvWKpL/uwNQIie0bZsTD30BbFtGLIJa4ChZKu drLOlMKOpV2GebtVBPUG/ X-Received: by 2002:a0c:bd2a:: with SMTP id m42mr12395298qvg.163.1585578964496; Mon, 30 Mar 2020 07:36:04 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs2CqiOLCy3X/aGPwCf6mgLKtWx4RE/aMNp8HAPzGE1kCgntoANM238gvuaPL5bjneET+YWow== X-Received: by 2002:a0c:bd2a:: with SMTP id m42mr12395284qvg.163.1585578964282; Mon, 30 Mar 2020 07:36:04 -0700 (PDT) Received: from [192.168.1.4] (198-84-170-103.cpe.teksavvy.com. [198.84.170.103]) by smtp.gmail.com with ESMTPSA id f24sm10177762qkk.127.2020.03.30.07.36.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Mar 2020 07:36:03 -0700 (PDT) Subject: Re: [PATCH] Reset converter state after second wchar_t output (Bug 25734) To: Andreas Schwab , Florian Weimer Cc: libc-alpha References: <87a73yx6vy.fsf@mid.deneb.enyo.de> <87mu7xlxxc.fsf@igel.home> From: Carlos O'Donell Organization: Red Hat Message-ID: Date: Mon, 30 Mar 2020 10:36:02 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <87mu7xlxxc.fsf@igel.home> Content-Language: en-US X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, 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: Mon, 30 Mar 2020 14:36:08 -0000 On 3/30/20 10:28 AM, Andreas Schwab wrote: > On M=C3=A4r 30 2020, Florian Weimer wrote: >=20 >> I'm not sure if the C committee wants implementations to be able to >> support Big5 (without Unicode changes first, to add characters which >> avoid the two-codepoint special cases). >=20 > Are you saying mbrtowc should return -1 here? No. That indicates an invalid multibyte sequence was found. The sequence is not invalid. There are in fact no semantics that apply given the current API design. --=20 Cheers, Carlos.