NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/60496: Locale-dependent UTF-8 issue over SSH session
>Number: 60496
>Category: bin
>Synopsis: Locale-dependent UTF-8 issue over SSH session
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 24 15:10:00 +0000 2026
>Originator: Thomas Dreibholz
>Release: 11.0_RC6
>Organization:
SimulaMet
>Environment:
NetBSD netbsd11 11.0_RC6 NetBSD 11.0_RC6 (CUSTOM_SCTP) #0: Thu Jul 23 15:24:45 UTC 2026 root@:/usr/src/sys/arch/amd64/compile/CUSTOM_SCTP amd64
>Description:
When logged in via SSH session, NetBSD 11.0_RC6 produces an invalid separator for printf "%'d\n" when the locale is set to nb_NO.UTF-8.
Example:
$ LC_ALL=nb_NO.UTF-8 printf "%'d\n" 12345
12�345
The separator should be a space in Norwegian locale (nb_NO.UTF-8). Instead, it sends �.
$ LC_ALL=nb_NO.UTF-8 printf "%'d\n" 12345 | hexdump
0000000 3231 33c2 3534 000a
0000007
In the console, the "�" is shown as space, so the issue is not visible there.
For example in de_DE.UTF-8, the output is correct ("." is used here):
$ LC_ALL=de_DE.UTF-8 printf "%'d\n" 12345
12.345
>How-To-Repeat:
$ LC_ALL=nb_NO.UTF-8 printf "%'d\n" 12345
12�345
>Fix:
Home |
Main Index |
Thread Index |
Old Index