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 4P1CXz4wbFz3b6kk 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 4P1CXz2j7fz4Fxw 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: in-reply-to:in-reply-to:references:references; bh=VH8vhAwrx+G5UQqkewNtZNHC9LivaedmnyI18FkVRiE=; b=kr/5EpP0tfHNNQJCD9trIiq3gr+stjbAnDJ1ywRrXmMZtY/6eRKIuIy1J86R3lF7oby5lT 1n4r2EeAqrQohEyZH8mgBq/SFL4SV0+tJtf3IILdRWUbs9Tp4tCKkD9OYJ2kKRd47SLQ/r Jh6A9YZ3GHWgdYdm6GmssOk9FD9QrtdDE8rnGiwkjM8wIbq8MHvlb/gLeJ7u+UdOd1H0Vj UsAPnWT1K7xi55qz1RrH9gPOw1wBz8UMXu9IHeOBQqO6i0S7woKcpUWQbtsSeLPD1DQrTw OsNJfPqadxik3J57VTFS+igvgQbjF7OoAYFapQujKx3PiuQqsJ3y5+CdXy2P2A== 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=DIAa2zqURjYAO1JOtCW3K1aLQLBEI69ZgGQ/6tY4jzU0ttaMoxAur09m/rjAUBh5t/HRA/ ThyIIOjJJzr5ta7j/+JIwLOulI1sGKtgN0mCAhjbYpM61c5Tx75iaxx4W4VTHBd+lNzxUl YpS9bMRvrTBWaVYWn9c1FNpGpN4P6y7z5M5E+XbqIspwTw0m2DEVueSq3z7nwl8xD6DI5d +gZLIQ9xxC4jgIcluHfdk+4gs6udV1ZJNlkaeRUfTByc3wMPbNXXnStxca6IsYtnP6Xmjz JDpMc9fACbXgFGQitXIrRTeJn3f+up2csAIiKLfldHkh8aRlNYbPRoWwUe5xCg== 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 4P1CXz1mJ8zvKK 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 30O3jNW4095647 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 30O3jNaJ095646 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: office@FreeBSD.org Subject: maintainer-feedback requested: [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-Type: request 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: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: office@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: 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 Bugzilla Automation has asked FreeBSD Office Team for maintainer-feedback: Bug 269127: devel/icu: Multibyte character is included in DateTimePatterns = for en locale in release 72 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269127 --- Description --- 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= b25d 4/icu4c/source/data/locales/en.txt What should it be?