tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: vi vs. nvi
On Fri, Aug 08, 2008 at 09:10:30PM +0900, SODA Noriyuki wrote:
> BTW, I don't know the result of recent Solaris.
> Could any try the following commands with the programs attached at the
> end of this mail?
> $ env LANG=en_US ./strcoll a B
> $ env LANG=en_US ./strcoll B z
> $ echo 'B' | env LANG=en_US ./regex '[a-z]'
> $ env LANG=en_US.UTF-8 ./strcoll a B
> $ env LANG=en_US.UTF-8 ./strcoll B z
> $ echo 'B' | env LANG=en_US.UTF-8 ./regex '[a-z]'
> According to the source code (*3), it seems OpenSolaris doesn't use
> strcoll(3)/wcscoll(3), and always compares character code values,
> although I may be missing something.
Here goes:
OS LANG CODESET(*1) result of regexec(3)
------------------------- -------------- ---------- --------------------
Solaris 7 en_US ISO8859-1 not match
Solaris 7 en_US.UTF-8 UTF-8 match
Solaris 8 en_US ISO8859-1 not match
Solaris 8 en_US.UTF-8 UTF-8 match
Solaris 9 en_US ISO8859-1 not match
Solaris 9 en_US.UTF-8 UTF-8 match
Solaris 10 FCS en_US ISO8859-1 not match
Solaris 10 FCS en_US.UTF-8 UTF-8 not match
Solaris 10 Update 6 (*) en_US ISO8859-1 match
Solaris 10 Update 6 (*) en_US.UTF-8 UTF-8 match
Solaris Nevada b91 en_US ISO8859-1 match
Solaris Nevada b91 en_US.UTF-8 UTF-8 match
OpenSolaris 2008.05 + b94 en_US ISO8859-1 match
OpenSolaris 2008.05 + b94 en_US.UTF-8 UTF-8 match
(*) Not sure when exactly between FCS and U6 this changed. I could
track it down to a patch number later if you want to know.
regards,
--
-- Lubomir Sedlacik <salo@{NetBSD,Xtrmntr,silcnet}.org> --
Home |
Main Index |
Thread Index |
Old Index