Message ID | 20240104140724.3053486-1-jwakely@redhat.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp5631569dyb; Thu, 4 Jan 2024 06:08:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IEtoGfvtJVKIZYNCwGaskvmrnlT0C4wsAJN95UAjG6/KmGQwX66iogTVPxgRFs3+eFhWqsz X-Received: by 2002:a05:6808:150c:b0:3bb:b956:7c97 with SMTP id u12-20020a056808150c00b003bbb9567c97mr669717oiw.19.1704377292449; Thu, 04 Jan 2024 06:08:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704377292; cv=pass; d=google.com; s=arc-20160816; b=SCR+WKu9phJxNfHoXksL5ljAEa5ip6TDO+wgNc1Qb+QKcNkIHGfXYecRFqYtabkD/c BuVMNGvAPGN4DvyYXmRWz9aSffKjBKbiqU92EIZp/HwbsngFqxAFWsHemx5OfJ2IRRlj noa2C4OT+MXrQx97rCHSOyp53pERCg618UuKPWC1gPdLvYZlZzwUHYzrqwsjJM0wg9/z gY3yD6so5awfk6lggwlgUZzkeLAn/vBk/9TGe+S4qF1Y0yQg0LiXEgSTYmF3cwNFp24K vfqEo4fBY6psXcqM7u486T7mdoAEvlwVV9u6Dao5Cyo75B+TyllDg4pUu/BdIVeMIi2f rsvQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=Dewh8hchgg5CD+G+mdjS1xyuih9OmQqVUJIj6wuGXrU=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=mC+9jPlTGdaBPKYt4/kYUQ/ITk92/yXua9nIp0f5QGtRA1C2nV6XMYa6inRMe562fg ZvGHx+AsAglJVV/XBUEnKPkf8GoDLnQmvccxpCF8ZM9paI64GstElnOkXKyavKJbU3lp 9dfNyZ7fELsgn+WihkxN42Goz9gxeH5W/clVECiCaWbrLt2anq8yqKou+6KRhVJkbF/g WkpQx4ybi9Snpc79ifRBi6yDVkeLuAVOd/jz1ZgROafvYhJk0FVLlrzFDnIs8M9I433x 3bU5G6sxO6x8F0P67uWfdyShgymnH9riJUoB1dkt9CM/PQ6sbjj5CqYNy5fkXqMWRy2a nOhw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GA47PH7Q; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id e16-20020a67c510000000b0046628095547si2716289vsk.347.2024.01.04.06.08.12 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 06:08:12 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GA47PH7Q; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1C6303858428 for <ouuuleilei@gmail.com>; Thu, 4 Jan 2024 14:08:12 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 61FDF3858D32 for <gcc-patches@gcc.gnu.org>; Thu, 4 Jan 2024 14:07:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 61FDF3858D32 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 61FDF3858D32 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704377251; cv=none; b=OjSE3LDBihYMEVAemFAWyUb2WQlGcPy4QfUqwsRcdmPsTUTjIAgEaMe/c/9Q15hO1xPODemJ5yNQEFXHLL5a2lPMXlJ7NL0eKuhdb1pjXSkksdZH8vsM/x0t8cirZ0W6CfgDdVfdnvthbkeZxFMOHbO/qwQ/Y3AEfOihArYlEc8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704377251; c=relaxed/simple; bh=m4BxjaOetickiaDCLbzU/D6/KTqMkF9iDVacf/WZk34=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=FInz9aq2oiWbCF8iLYy6CEgPPzKuKU8sJPXsVEUmy7h4GGV8D8CwLCYG6mry/FJaoJOHpMbsuq8m8tXgI3po0Shhfcm5qcQpT9ZmJrPu5uute1d0MfhySy3nGXTCWfL9n7OyjHi29Z0JvVHQ2I8SSdMugEWYbTKRnIJieY3ClOk= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704377247; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Dewh8hchgg5CD+G+mdjS1xyuih9OmQqVUJIj6wuGXrU=; b=GA47PH7Q6vWU/JT24Ipibb9m4jK9Pk1eNJL7YBJKTH4J+WNXF43HscxXa23IsNs/SWATG7 61cZg4My0jiLZOdZTui3PI7/4wtPT9xoCYDguJSviR/stedglfed45j25C5fobFTD8FJJ5 14Gu1DDKfxgKR7gJ9EAuyO4HnsGi7Z4= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-30-MO--V5YMPnuL1z3k83K59Q-1; Thu, 04 Jan 2024 09:07:26 -0500 X-MC-Unique: MO--V5YMPnuL1z3k83K59Q-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B116F185A786 for <gcc-patches@gcc.gnu.org>; Thu, 4 Jan 2024 14:07:25 +0000 (UTC) Received: from localhost (unknown [10.42.28.185]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7CF2A5190 for <gcc-patches@gcc.gnu.org>; Thu, 4 Jan 2024 14:07:25 +0000 (UTC) From: Jonathan Wakely <jwakely@redhat.com> To: gcc-patches@gcc.gnu.org Subject: [PATCH] contrib: Add script name to usage error in gen_wcwidth.py Date: Thu, 4 Jan 2024 14:06:49 +0000 Message-ID: <20240104140724.3053486-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787169123830333146 X-GMAIL-MSGID: 1787169123830333146 |
Series |
contrib: Add script name to usage error in gen_wcwidth.py
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Jonathan Wakely
Jan. 4, 2024, 2:06 p.m. UTC
I intend to commit this as obvious later today. -- >8 -- contrib/ChangeLog: * unicode/gen_wcwidth.py: Add sys.argv[0] to usage error. --- contrib/unicode/gen_wcwidth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/unicode/gen_wcwidth.py b/contrib/unicode/gen_wcwidth.py index 02b28bcedcf..aa8d8b2cfd2 100755 --- a/contrib/unicode/gen_wcwidth.py +++ b/contrib/unicode/gen_wcwidth.py @@ -22,7 +22,7 @@ import sys import os if len(sys.argv) != 2: - print("usage: %s <unicode version>", file=sys.stderr) + print("usage: %s <unicode version>" % sys.argv[0], file=sys.stderr) sys.exit(1) unicode_version = sys.argv[1]