NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/60496: Locale-dependent UTF-8 issue over SSH session



    Date:        Sun, 26 Jul 2026 16:36:45 +0200
    From:        Thomas Dreibholz <dreibh%simula.no@localhost>
    Message-ID:  <df67540e-6bb9-4cda-90c0-579dd702045c%simula.no@localhost>

  | 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





Home | Main Index | Thread Index | Old Index