[illumos-Developer] webrev: some locale cleanups/improvements

Roland Mainz roland.mainz at nrubsig.org
Thu Jan 13 20:05:10 PST 2011


On Thu, Jan 13, 2011 at 9:30 PM, Garrett D'Amore <garrett at damore.org> wrote:
> http://mexico.purplecow.org/gdamore/webrev/noascii/
>
> This removes support for 7-bit ASCII, kind of.  Basically, we can always
> treat that as 8-bit clean data, the same way we treat the C/POSIX locale and
> all 8859-x locales.  An extra enforcement that complains when you try to use
> a byte with the high order bit offers no value.  (This encoding scheme was
> never used, and was an addition from FreeBSD...  Solaris and illumos don't
> have any locales that use it.)
>
> At the same I've made some very minor changes to UTF-8 which eliminate some
> extra tests during conversion between wide and multi-byte string formats.
>  This will have a very small performance benefit on anything that does these
> operations -- which is most everything that does sorting or display, and a
> bunch of other things -- the path is actually pretty hot especially for
> those running graphical desktops.

The changes look good for me. r=roland.mainz at nrubsig.org ...

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)



More information about the Developer mailing list