From nobody Tue Jan 24 03:45:23 2023 X-Original-To: ports-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 4P1CXz5pGwz3b6ZC for ; Tue, 24 Jan 2023 03:45:23 +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 4P1CXz3vBrz4Fqd for ; Tue, 24 Jan 2023 03:45:23 +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=1674531923; 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=leUBsuR8Ko+dkMNMO3tA+02uoai+iYrwdVffsX4aQEc=; b=fSEd7grsFQsFJkRwKiA4w33qFWDaD+ZOPrWwjVL5FR5etDPNnqdEZrKy1uvpiEIOeJmbtn 8Vd1Vp7rni31OD/BaGmzkcPZhJVoaYsvV8FKwV+c/chtfc+W+XEIRGNdrm9MZZDF3TjWr7 qz6PPuu3FlgYgaQXVWKOGSOuCrhjcFMOPIscjHiwuz7Ee1HD7gGpAYIzzVa7Cy0cQ9E/ZH 2K97UgZzZqKwyTVaujKeBofy8zU5gnU0LsyvY/OYmS2wJpKFYx/ABL1lwDgMjmMcsKI5v3 Ow4PfogrBwPylbmbgqvD2uMgUwbQVHneqOb/TnmsGrij1GGhBa5jkzJUxblftg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674531923; a=rsa-sha256; cv=none; b=acN1mBzw0oXD0dtxslWGR38wljkashilT7A5GOueR05gI9C8XzkEsK+2oNypkY/u9h5dY8 DfFSW1NCeN08dUfBhZx7avMCZa3o7QAfxySyGuiFycSRU3vCJ+UAWwF1O5ETa3FkPvRNwn Rtc+ERfON5gz/+qgeJKOHHEoTtpsIfRSlkeiMrHOZ5N31Gl00ulNtyOWimjauxO9YaWdTg P8lOwIS59bSXn2pd70b1cCYfycGeA3wtQX4LC01TnYue7eJ2ayvLt+VkTuugdcAGmOkvO/ C2SY3tEqjIgxoIlxO03uOJ+qrC/7722rSkvdfCcLN2F9XGAZWkDhFkPysgEHFA== 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 4P1CXz2zMjzv4Y for ; Tue, 24 Jan 2023 03:45:23 +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 30O3jN0o095651 for ; Tue, 24 Jan 2023 03:45:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 30O3jNd3095650 for ports-bugs@FreeBSD.org; Tue, 24 Jan 2023 03:45:23 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: ports-bugs@FreeBSD.org Subject: [Bug 269127] devel/icu: Multibyte character is included in DateTimePatterns for en locale in release 72 Date: Tue, 24 Jan 2023 03:45:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tatsuki_makino@hotmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: office@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269127 Bug ID: 269127 Summary: devel/icu: Multibyte character is included in DateTimePatterns for en locale in release 72 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: office@FreeBSD.org Reporter: tatsuki_makino@hotmail.com Assignee: office@FreeBSD.org Flags: maintainer-feedback?(office@FreeBSD.org) For example, the following JavaScript code may produce unintended results. (function () { var i, d=3D[], s=3D[]; d[0] =3D new Date(0); s[0] =3D d[0].toLocaleString("en-US"); d[1] =3D new Date(s[0]); console.log(d[0], s[0], d[1]); for (i =3D 0; i < s[0].length; ++i) { console.log(s[0].charAt(i), s[0].charCodeAt(i).toString(16)= ); } })(); d[1] is expected to be the same as d[0], but is "Invalid Date" in icu-depen= dent web browsers (firefox-esr-102.7.0,1, chromium-109.0.5414.74 and... seamonkey-2.49.4_27 :) ). The reason for this is that the string converted to LocaleString contains U+202F. One problem with this is that the en, en-* locale have been deified as not containing multibyte characters in the language areas that use multibyte characters (e.g. Japan :) ). This is why they would choose this method. In fact, there are sites that display "Invalid Date" because of this. The problem with this is that it will behave differently with browsers that= are not using icu. As far as I have tried, Windows10+ChromeEdge and Android+Edge return LocaleString without multibyte characters, which works as expected. I think the distribution file for the port already has a database of the pa= rts related to this, but the source is this. https://github.com/unicode-org/icu/blob/bb0e745e25c99cc57055caf45c81b95ef63= b25d4/icu4c/source/data/locales/en.txt What should it be? --=20 You are receiving this mail because: You are the assignee for the bug.=