From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (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 dcvr.yhbt.net (Postfix) with ESMTPS id EA6E31F4D0 for ; Wed, 8 Jan 2025 12:35:55 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=Oc+2hWQG; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=WKK3xxD1; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1736339722; bh=2T4vASiWBfDo9Zmf624H/3TBkWo6JZmLcNH2mBW+vkA=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=Oc+2hWQGxXLTeRBXZLP9tgQ/40lp2DqTcpnpaajvFr0uDEFl887Fv8PPfO3ZwM5ZD XfCh85P57WOMJR9YbKR7LbEblmEeAHfV20P1OsC+d0UpPW15dKyYNDynZGImk+gYkP ogZafOn+ckPs4eph+4f8vdMTplaaKzkxJ+xRjTZ0= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id E3D664670E for ; Wed, 8 Jan 2025 12:35:22 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=WKK3xxD1; dkim-atps=neutral Received: from s.wrqvwxzv.outbound-mail.sendgrid.net (s.wrqvwxzv.outbound-mail.sendgrid.net [149.72.154.232]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 386A546682 for ; Wed, 8 Jan 2025 12:35:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=G7uLJNwriRO7cdA4szpLnuLKISa3CP9J48tByU+qHso=; b=WKK3xxD1mRxOhdLlERF/cjlvRZfd5nXiTsFxO1ukOJoeaAI18yUndSVOSI4wII7MJXdr rC2aO/gfDW2nuz1xoZ3+SD9hvOZXtJxNGGlindLTFo8EWO0Oot9UzX5lwDzTFiH/jPlHCX KGoaWzihs4Zgy9Jtar4sn1feoNs+FcuphO+YNolqQjCUpsZ71DEk1EtrY2AgzeyD+wMpCi 2Be4AowoaxlcC3C/899Pc8th9RzDRl8Si0epp3dXFgyZ3Y0rba8dTvyUiMUk8twn2WplJa 6S1AmuIN++pvcO3WWB/hP5lZlZpKrnjFYLF8GYh9gh4Ml4voKSzjp0C74Z5MY/rA== Received: by recvd-69cbc48b94-hnb44 with SMTP id recvd-69cbc48b94-hnb44-1-677E7103-E 2025-01-08 12:35:15.334434031 +0000 UTC m=+4720413.799917629 Received: from herokuapp.com (unknown) by geopod-ismtpd-16 (SG) with ESMTP id pS78padRQimzrXgtwR1gsg for ; Wed, 08 Jan 2025 12:35:15.299 +0000 (UTC) Date: Wed, 08 Jan 2025 12:35:15 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 21018 X-Redmine-Issue-Author: nobu X-Redmine-Issue-Priority: Normal X-Redmine-Sender: nobu X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 97232 X-SG-EID: =?us-ascii?Q?u001=2E5PtzXJ23KrYzgM1nrOIr+EQ222PyrDaWSg0Er8CZ8tP86xyXmBM81zBKD?= =?us-ascii?Q?HreavdFYMbHjxXOR6UPMkt=2Fu9CyBIp6y52n8D2y?= =?us-ascii?Q?qA9zqurrgUdjGPuof0ZhpP=2FulxzmsKwfsFTReoA?= =?us-ascii?Q?LrqzRCluNqaJGg8qNWKX093o0IwX=2F+ENxDVPrha?= =?us-ascii?Q?UWP+IkURWezZC5=2FRNAv2RhQSSmNwiWinqlXxKYP?= =?us-ascii?Q?vMIHG6TNGu83w2lo2g936NNqn1dNreiO9BDfE9b?= =?us-ascii?Q?DFuWZKCgng2o6mPVmu4+bFEoUw=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: PRI4IYBAOOO4UBPRCMLNMNDY7IHO2N7V X-Message-ID-Hash: PRI4IYBAOOO4UBPRCMLNMNDY7IHO2N7V X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:120556] [Ruby master Bug#21018] Show invalid command line option more properly List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "nobu (Nobuyoshi Nakada) via ruby-core" Cc: "nobu (Nobuyoshi Nakada)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #21018 has been reported by nobu (Nobuyoshi Nakada). ---------------------------------------- Bug #21018: Show invalid command line option more properly https://bugs.ruby-lang.org/issues/21018 * Author: nobu (Nobuyoshi Nakada) * Status: Open * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- Currently the invalid command line option character is printed as-is. This makes the error message confusing sometimes. ```console $ ruby -$'\rx' (-h will show valid options) (RuntimeError) $ ruby -$'\U1f608' ruby: invalid option -? (-h will show valid options) (RuntimeError) ``` These are actually: ```console $ ruby -$'\rx' |& cat -e ruby: invalid option -^M (-h will show valid options) (RuntimeError)$ $ ruby -$'\U1f608' |& cat -e ruby: invalid option -M-p (-h will show valid options) (RuntimeError)$ ``` I think control characters and multibyte characters should be printed properly. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/