Re: bin/60496: Locale-dependent UTF-8 issue over SSH session
Robert Elz <[email protected]> Mon, 27 Jul 2026 02:29:25 +0700
| Newsgroups | gmane.os.netbsd.bugs |
|---|---|
| Message-ID | <[email protected]> |
Date: Sun, 26 Jul 2026 16:36:45 +0200
From: Thomas Dreibholz <[email protected]>
Message-ID: <[email protected]>
| the same issue also occurs under Solaris (OpenIndiana 2026.04) ->
| The observed issue
| occurs under NetBSD and OpenIndiana, but not under FreeBSD, OpenBSD and
| different Linux distributions.
| Linux (Ubuntu 24.04):
|
| Linux besserud.proxmox.crnalab.net 6.17.0-35-generic #35~24.04.1-Ubuntu
| SMP PREEMPT_DYNAMIC Tue May 26 19:30:42 UTC 2 x86_64 x86_64 x86_64
| GNU/Linux
| 12â¯345
| 0000000 3231 80e2 33af 3534 000a
| 0000009
| 12â¯345
| 0000000 3231 80e2 33af 3534 000a
| 0000009
That one is simple enough, E2 80 AF is UTF-8 for code-point 8239 (0x202f)
a narrow no-break space (which would appear as just a space in a fixed
width font like terminal emulators use).
| FreeBSD (15.1-RELEASE):
|
| FreeBSD lillevann.proxmox.crnalab.net 15.1-RELEASE FreeBSD 15.1-RELEASE
| releng/15.1-n283562-96841ea08dcf GENERIC amd64
| 12 345
| 0000000 3231 a0c2 3433 0a35
| 0000008
| 12â¯345
| 0000000 3231 80e2 33af 3534 000a
| 0000009
That is more interesting, for nb_NO.UTF-8 FreeBSD is using a regular
width no-break space (Code point 160, 0xA0), and for fr_FR.UTF-8 they're
using the narrow one that Linux uses.
Is Norweigan intended to be different from French in that way, or not?
(ie: do Linux or FreeBSD have it correct) ? Or perhaps neither, and
both French & Norweigan should be a normal width no-break space?
If this is to get changed in NetBSD, we might as well try to get it right.
The others don't need comments.
kre