HomeFreeBSD

locales: Fix eucJP sorting (broken upstream?)

Description

locales: Fix eucJP sorting (broken upstream?)

Sorting eucJP text with "sort" resulted in an illegal sequence while
"gsort" worked. This was traced back to mbrtowc handling which was
broken for eucJP (probably eucCN, eucKR, and eucTW as well). This
small fix took hours to figure out. The OR operation to build the
wide character requires an unsigned character to work correctly. The
euc wcrtowc conversion is probably broken upstream in Illumos as well.

Triggered by: misc/freebsd-doc-ja in ports (encoded in eucJP)

Submitted by: marino
Obtained from: DragonflyBSD

Details

Provenance
baptAuthored on
Parents
rS290239: Fix lladdr change propagation for on vlans on top of it.
Branches
Unknown
Tags
Unknown