Re: wcscoll bug?
- From: "Zhongchao Yu" <yuzc00@xxxxxxxxx>
- Date: Wed, 5 Oct 2005 13:41:03 -0400
Thanks very much for your information. Very helpful.
Zhongchao
"Igor Tandetnik" <itandetnik@xxxxxxxx> wrote in message
news:uvV764cyFHA.720@xxxxxxxxxxxxxxxxxxxxxxx
> Zhongchao Yu <yuzc00@xxxxxxxxx> wrote:
> > I assume that wcscoll() is an ANSI function. So why does it behave
> > differently on different platforms? Is there any related standard
> > about English collation out there?
>
> Locale-specific information is (probably intentionally) underspecified
> in C and C++ standards. The standard simply says that strcoll and
> wcscoll compare two strings as appropriate for the currently selected
> locale, but does not say what "appropriate" means.
>
> The most relevant standards are:
>
> ISO 14651 "Information technology -- International string ordering and
> comparison -- Method for comparing character strings and description of
> the common template tailorable ordering"
>
> Unicode Collation Algorithm (UCA)
> http://www.unicode.org/reports/tr10/
>
> There exist fully conformant implementations of UCA (see e.g.
> http://icu.sourceforge.net/), but Windows collation support is not one
> of them. For more details, see
>
> http://blogs.msdn.com/michkap/archive/2004/11/28/271121.aspx
>
> --
> With best wishes,
> Igor Tandetnik
>
> With sufficient thrust, pigs fly just fine. However, this is not
> necessarily a good idea. It is hard to be sure where they are going to
> land, and it could be dangerous sitting under them as they fly
> overhead. -- RFC 1925
>
>
.
- References:
- wcscoll bug?
- From: Zhongchao Yu
- Re: wcscoll bug?
- From: Igor Tandetnik
- Re: wcscoll bug?
- From: Zhongchao Yu
- Re: wcscoll bug?
- From: Igor Tandetnik
- wcscoll bug?
- Prev by Date: Re: passing a string to a C++ function
- Next by Date: Re: passing a string to a C++ function
- Previous by thread: Re: wcscoll bug?
- Index(es):
Relevant Pages
|