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)



Synopsis: Locale-dependent UTF-8 issue over SSH session

State-Changed-From-To: open->analyzed
State-Changed-By: riastradh%NetBSD.org@localhost
State-Changed-When: Fri, 24 Jul 2026 17:36:04 +0000
State-Changed-Why:
Well, that's a silly bug.

It's trying to print the octet sequence 0xc2 0xa0, but only the 0xc2 is
coming out, because...

    631 	char thousands_sep;	/* locale specific thousands separator */
...
    923 			thousands_sep = *(localeconv_l(loc)->thousands_sep);

https://nxr.netbsd.org/xref/src/lib/libc/stdio/vfwprintf.c?r=1.41#631

I.e., it's just working with the first byte of the string!






Home | Main Index | Thread Index | Old Index