From nobody Sat Dec 2 18:10:08 2023 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 4SjHyn210yz53F4M for ; Sat, 2 Dec 2023 18:10:09 +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 4SjHyn0ggkz4KrL for ; Sat, 2 Dec 2023 18:10:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701540609; 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: in-reply-to:in-reply-to:references:references; bh=nXifb231Q0Eoqd8zptRsllbe3nNqDlQ4Op9xvyqH03k=; b=SKSIYKoLPc+C3RqnxZ6stj4BQKYqp/1wNPmqFBIl6YE7AuobQqWNQV7h4ATnlYyTcVKEwu PS7oPY3UnHJydBLaE9qjjhHFEzIF4Aly1VLykUTERNZOEfkFU4HtfJX69Yvojh1x5tQkrc Mujy97XIWId8havf8tR0YglgRt4MSN9dIKOK1x4ssUskjVbR6WLz118BSElmAiuDeffxm5 Azv1AkOr6aEZub5q486gfe4bcBInno8Bgz6S93NuExa+3ku+/tBRxSxebaHtsfikD0VD+s 0ddC2VbMglHYO9QAyw/Ra+WRPeC4+da67fKBqXUOWsBKsSmzMa/02gK3gJKhag== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701540609; a=rsa-sha256; cv=none; b=oyoOHA5g9Me+AVV3C5bGmYlaOuOhsOHJwUQKOWxqyHdTxN26wxOETmhLkpFoTPH1sTLb8X WaKdmN6xUBb0za44Cj4emghOI9oQP5ELC+Z2eeuzD6mlDJbcDmX0CLw+rnz7ZoUcRCcRdt 7qE3NeAMcY6rmjgWy7zL4fW/GjR6ngl4y2JXWPYdzurfSvUbLbvYmDzYhCA30KbnjJaPU4 TSmEolA4lnvShNX4MyPkzCAQWwFfUBo9EixUfEJT1Aii7xy2+7KrjD81UxLN7RzsAyK/Vx IPREcoOtnX/WHtMp8Ma6Vcn68T2WLkqlVneJryA8B5XDHQliq+pRFS11RhUeew== 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 4SjHym6T0FzC6R for ; Sat, 2 Dec 2023 18:10:08 +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 3B2IA83D021053 for ; Sat, 2 Dec 2023 18:10:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3B2IA8LY021052 for bugs@FreeBSD.org; Sat, 2 Dec 2023 18:10:08 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 275444] isprint() library function returns wrong when LC_CTYPE is ja_JP.SJIS (tcsh aborts by this) Date: Sat, 02 Dec 2023 18:10:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: uratan@miomio.jp X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275444 --- Comment #3 from uratan --- Created attachment 246729 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D246729&action= =3Dedit list of disappeared mappings > Could you please try replacing > tools/tools/locale/etc/final-maps/map.SJIS file with the one in attachment > and doing `make all install` in share/ctypedef? > It seems to fix the \ and ~ characters for me, but checking that > it doesn't break anything else would be helpful. I did so, and confirmed that tcsh/csh can printenv '~' char in environment variable with the new LC_CTYPE: +---------------------------------------- |-r--r--r-- 1 root wheel 4700 Dec 1 04:14 /usr/share/locale/ja_JP.SJIS/LC_CTYPE |MD5 (/usr/share/locale/ja_JP.SJIS/LC_CTYPE) =3D 13bb935e7ba1275a263cf0074ceaa352 +---------------------------------------- - * - * - I analyzed your new map file by text processing because I am not familiar with either KANJI-codes or LC_CTYPE with multibyte chars. Here are files used: +---------------------------------------- |MD5 (map.SJIS.orig) =3D 5a3ff0eb3cf5efe1fa9d44dc6a494e57 ...of 14.0R...[A] |MD5 (map.SJIS.yuri) =3D 7adad9b105608e4fd16a5e9f00af7a43 ... yours ...[B] +---------------------------------------- [A] has 11495 mappings, including 96 aliases for chars under 0x7f and | \x5c | \x7e [B] has 7166 mappings, including same 96 aliases for chars under 0x7f and | \x5C | \x7E So [B] has less 4329 mappings than [A]. The attached file: "www-disappeared.txt" (handle as [C]) is the list of disappeared mappings from [A] to [B], sorted by code. It has 4331 entries including and . I am using this web page as (easy) reference about SJIS code. http://charset.7jp.net/sjis.html Chars with light-blue-background in the bottom table are not recommended to use by the author because they can not be mapped to unicode, including 'machine/OS dependent characters'. I confirmed, by my eyes, disappeared mappings in [C] with the table, they all are on light-blue-background. So your [B] should be fine, I think. --=20 You are receiving this mail because: You are the assignee for the bug.=