Re: [Tools-discuss] Xml2rfc web service at https://xml2rfc.tools.ietf.org/experimental.html does not do v3 plaintext

Carsten Bormann <cabo@tzi.org> Sat, 26 October 2019 16:24 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: tools-discuss@ietfa.amsl.com
Delivered-To: tools-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 932841200B6 for <tools-discuss@ietfa.amsl.com>; Sat, 26 Oct 2019 09:24:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level:
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZsrQt6WPbJfb for <tools-discuss@ietfa.amsl.com>; Sat, 26 Oct 2019 09:24:08 -0700 (PDT)
Received: from gabriel-vm-2.zfn.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3C004120024 for <tools-discuss@ietf.org>; Sat, 26 Oct 2019 09:24:08 -0700 (PDT)
Received: from [192.168.217.110] (p5089AE1C.dip0.t-ipconnect.de [80.137.174.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 470mWp5JyfzyQp; Sat, 26 Oct 2019 18:24:06 +0200 (CEST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <31DB1003-A913-4F31-9C41-50C0636382F6@tzi.org>
Date: Sat, 26 Oct 2019 18:24:06 +0200
X-Mao-Original-Outgoing-Id: 593799802.057294-345fbdf80dd3444fce49a477637a3781
Content-Transfer-Encoding: quoted-printable
Message-Id: <300D8DE9-7372-4978-ABB9-64809BBCBC65@tzi.org>
References: <31DB1003-A913-4F31-9C41-50C0636382F6@tzi.org>
To: "tools-discuss@ietf.org" <tools-discuss@ietf.org>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/CvXQuxw0YGxeKgMpDvjodd7W8B4>
Subject: Re: [Tools-discuss] Xml2rfc web service at https://xml2rfc.tools.ietf.org/experimental.html does not do v3 plaintext
X-BeenThere: tools-discuss@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IETF Tools Discussion <tools-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tools-discuss/>
List-Post: <mailto:tools-discuss@ietf.org>
List-Help: <mailto:tools-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 26 Oct 2019 16:24:11 -0000

On Oct 26, 2019, at 18:03, Carsten Bormann <cabo@tzi.org>; wrote:
> 
> FYI: I cannot make the xml2rfc web service at https://xml2rfc.tools.ietf.org/experimental.html work for v3 plaintext.  It complains that it cannot encode a character in ascii, but I didn’t specify ASCII, I asked for plaintext.

Ha, the tail of the traceback is:

 File "/usr/local/lib/python2.7/dist-packages/xml2rfc/util/postal.py", line 179, in get_normalized_address_info
    writer.note(x, "Postal address check failed for author %s." % full_author_name(author, latin))
  File "/usr/local/lib/python2.7/dist-packages/xml2rfc/writers/base.py", line 1735, in note
    self.log(self.msg(e, label, text))
  File "/usr/local/lib/python2.7/dist-packages/xml2rfc/writers/base.py", line 1677, in log
    xml2rfc.log.write(msg)
  File "/usr/local/lib/python2.7/dist-packages/xml2rfc/log.py", line 28, in write
    write_err.write(' '.join(args))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 95: ordinal not in range(128)

So it wanted to complain in ASCII about an author, but couldn’t, because the author isn’t an ASCII person.

(BTW, I’m still trying to figure out the postal address messages for the ASCII authors.)

Source file: https://tools.ietf.org/id/draft-ietf-core-resource-directory-23.xml

Grüße, Carsten