Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for non-UTF-8 wide charsets (Solaris patch 050-CR7065478)
This upstreams a Solaris patch: https://github.com/oracle/solaris-userland/blob/master/components/ksh93/patches/050-CR7065478.patch src/lib/libast/comp/setlocale.c: - Add wide_wctomb() wrapper for wctomb(3). It changes an invalid character (wctomb returns -1) to a single byte with length 1. - set_ctype(): Use wide_wctomb() instead of wctomb(3) as the conversion discipline function (ast.mb_conv). Effectively this means there are no invalid characters. Perhaps this is necessary for compatibility with ASCII. Sadly, no public info available.
- Loading branch information