From nobody Fri May 27 21:21:12 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 68D151B3DAD6 for ; Fri, 27 May 2022 21:21:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L8yQx0Dp2z3P11 for ; Fri, 27 May 2022 21:21:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DCC5D297FC for ; Fri, 27 May 2022 21:21:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 24RLLCXl063588 for ; Fri, 27 May 2022 21:21:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24RLLCPj063587 for bugs@FreeBSD.org; Fri, 27 May 2022 21:21:12 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 264299] tcsh dirs builtin-command and more can't input/show tilda/reverse_solidus character in LANG=ja_JP.SJIS environment. Date: Fri, 27 May 2022 21:21:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: alumina@ceramix.compress.to X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653686473; 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=aVQ86hEtRaQl0NfJphQx0VsvZ8+qb8jnoi+TvfAeotk=; b=WuGjksPmm3npCfnp2MeQKdMTCqxVFrfZ9oE25TuTVcb5kRiOURK24Cg4EL65SE5M/GLwa1 bB4/L3BFEFNSZPnGe09kHq6oDaVNklX7/lCLC5qn4nnEGjw/tYGU6++lVcg/5ogaDk93ZI Dyzd7U+e5X+QfQ84iSm2o9PfurNKf1uTU2hX0U36d99YYx2Z8AAGmaNgxS0hgiNqcya2vG /7frK+P3vA8OB+RoXGTKyAVGtZdwRAABUo89YqxikyNrVXZOCHq2c4fvzfpOaB7lIy3QOy mU+iyqL6tfEkF+QrT35qGnZ+KH278SDAzl1dDgTTcRqo/KEP+NS1WxjTebePow== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653686473; a=rsa-sha256; cv=none; b=i8uwDfGKc+YAX9BsEgVNOf6wLazCxmi1CD4dG1faMDE384pOHfT/Jmt6HCuhLrNmD1w/4J KW5k1v4ld9r5sg9yOmMay342aH2nea9/8rR/ya9oQYF2a4/IPEo1N09lj/UKLZnEIkfMfS 6mSNizeL4v60/xbwXIWz4aaBmpv61q+kf00J+0dUQbFDd8dMoKxQpW81XGxTM5OsOLwmwl 6rWrUC99Yk23wFttKimGIEVQkFWULde2F29aNT8Tfmubshx+FP3z/kJg17HoR+oaRyS2y6 yjNy54qcvdaC4LkKUYw3gnCTidxZfLhQsnJckBcoyhIL2b3Hu9JPUTtnKrGK3g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264299 Bug ID: 264299 Summary: tcsh dirs builtin-command and more can't input/show tilda/reverse_solidus character in LANG=3Dja_JP.SJIS environment. Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: alumina@ceramix.compress.to /usr/src/tools/tools/locale/etc/final-maps/map.SJIS fix mapping character. /usr/src/contrib/tcsh/sh.print.c fix core-dumped in show home directory in dirs builtin-command in LANG=3Dja_JP.SJIS environment. --- tools/tools/locale/etc/final-maps/map.SJIS.orig 2018-08-15 20:55:35.0543 59000 +0900 +++ tools/tools/locale/etc/final-maps/map.SJIS 2018-08-15 21:02:32.7805220= 00 +0 900 @@ -163,7 +163,7 @@ \x5a \x5a \x5b - \x5c + \x5c \x5d \x5e \x5f @@ -223,7 +223,7 @@ \x7b \x7c \x7d - \x7e + \x7e \x7f \x7f \x81\x40 --- contrib/tcsh/sh.print.c.orig 2018-06-22 08:03:38.000000000 +0900 +++ contrib/tcsh/sh.print.c 2018-08-15 20:01:12.462458000 +0900 @@ -169,9 +169,9 @@ } } else if (!isprint(c) && (ASC(c) < 0x80 || MB_CUR_MAX =3D=3D 1)) { - xputchar('\\' | atr); - xputchar((((c >> 6) & 7) + '0') | atr); - xputchar((((c >> 3) & 7) + '0') | atr); + putraw('\\' | atr); + putraw((((c >> 6) & 7) + '0') | atr); + putraw((((c >> 3) & 7) + '0') | atr); c =3D (c & 7) + '0'; } (void) putraw(c | atr); --=20 You are receiving this mail because: You are the assignee for the bug.=