From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3EDF03858D1E; Mon, 15 Jan 2024 13:23:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3EDF03858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1705325011; bh=ixsmySkl7N6J0uOb/xFnaYqkVd0j5TCQxdB7B9KyWHs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZRQN8DxrUGwl6eviLzLbgEhrGCBuO6kPlpFdWzBLExJqLtsVhCMJ2xnRoFL0f2oV9 Uv5Mb0iDUp8BJ+WCdevSnzL6QpH0VlfwCSavg8ym3NNtr5Hq6ibXtubpVj12XFSFBW PB/DQodveHYF0kFObrNTlGDNd4lwLzWIuC0YAgGI= From: "smcv at collabora dot com" To: glibc-bugs@sourceware.org Subject: [Bug locale/31030] ERA segments are nul-separated rather than semicolon-separated Date: Mon, 15 Jan 2024 13:23:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: locale X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: smcv at collabora dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31030 Simon McVittie changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |smcv at collabora dot com --- Comment #2 from Simon McVittie --- GLib currently uses (intptr_t) nl_langinfo(_NL_TIME_ERA_NUM_ENTRIES) in its workaround for the ERA not being as documented, but it seems that there is a separate problem with that on 64-bit big-endian architectures: https://gitlab.gnome.org/GNOME/glib/-/issues/3225 On x86_64, in the Japanese (ja_JP.utf8) locale, (intptr_t) nl_langinfo(_NL_TIME_ERA_NUM_ENTRIES) is 0x0000'0000'0000'000b (decimal 11) which seems to be what is expected. But on s390x, the result I see is 0x0000'000b'0000'0000 (a very large numbe= r): it looks as though the two 32-bit words have been swapped? There is a test program attached to the GLib issue which might be useful. --=20 You are receiving this mail because: You are on the CC list for the bug.=