This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [libstdc++] Transforming a string to a primary sort key
- From: Tim Shen <timshen91 at gmail dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: libc-alpha at sourceware dot org, Paolo Carlini <paolo dot carlini at oracle dot com>, roland at gnu dot org
- Date: Fri, 28 Mar 2014 14:35:01 -0400
- Subject: Re: [libstdc++] Transforming a string to a primary sort key
- Authentication-results: sourceware.org; auth=none
- References: <CAPrifDmGAR=wVP7++dDC--V9R0jfO2r7ohvD_Bnnd3YM3VNASQ at mail dot gmail dot com> <Pine dot LNX dot 4 dot 64 dot 1403281639120 dot 6067 at digraph dot polyomino dot org dot uk> <CAPrifD=eUWEeHZzUUtdDHj_kO+YyHfuGkMY8erQxxGi5hZPquw at mail dot gmail dot com>
On Fri, Mar 28, 2014 at 2:23 PM, Tim Shen <timshen91@gmail.com> wrote:
> printf("%d\n", wcscmp(buff1, buff2) == wcscoll(st1, st2));
This line may be misleading. To be clearer, in my GNU/Linux machine,
wcscmp returns 0 and wcscoll return 7.
--
Regards,
Tim Shen