From nobody Tue Jan 24 03:45:23 2023 X-Original-To: office@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 4P1CXz5pfZz3b6Ws 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 4P1CXz4XCdz4GBq 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=o6FokGubAJGZ4fybS2/Hfj/jhERmhjokH5H7GWNZMW48ne5VwVmZVzWsKdM0AjniA7BPJW Q9GxkiAPhW+TJLS3VXrS6CN4CbdITC8Tlu4HixgYlGbSVWefXMqBQcVCPOrDqG+yqRKtXr YdgVuWc1amAwGFvFi+y0gJmbtARrwczhCC7bY3nKBZJckWiH6SA9Etw7ehUV7tmqfX7CaG Dl7EGclvgz7wWSi9yObf4qJl3T/a4YZPk9SAU1JomKplmiaG5rzVlS1akkw2mpNFlvt4WX 0lxfoNWg9OCXOkVPhXQzpnq6kPoownDdMDyqwZ84yYbYmGOzIIQTAgDsncdtSA== 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=yA3vMcyhogXkOP38fOu4zWaYRr6+3d6al+KSB0nQ3aWqSgb5KKdl/n+tp4gV8T7EnE4CB7 I9+5q1wxyx+HN79HQXLIrn2FoT6oypTBIgyRVp2juNDIx9aXI+2J8S1zV38FQwapwwnj2L Q7AZT+HMHI4PS2Qc1N4/QqjX9k7U10+WAFmP10adTseWM9EIGYd+0vbk+bgZ2U+34T8sEw MwzWV+bO2yqPpcZIMdera1mQZ6qZLmTUv5l1EjAE3HzNxKOzNL1nxjrEmtJ9+8M902X6XT hUoZ3754nGgb5V2MmFgx8OEa/IPyFEFwePBB5uuJNw9eIp6r5quFYSw6ZVZfwg== 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 4P1CXz3bX6zvKL 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 30O3jNAf095655 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 30O3jN0i095654 for office@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: office@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: Office applications on FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-office List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-office@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.=