This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] collate_members_wchar_t.cc


Ulrich Drepper wrote:

> On Sat, 2002-03-09 at 12:47, Paolo Carlini wrote:
>
> > Well, I'm running on i686-pc-linux-gnu, linux2.4.16, and a stock
> glibc2.2.5
> > built with gcc2.95.3+patches.
>
> The current sources have no known problems.  2.2.5 should be fine, too.
> What do you get for the C equivalent I mentioned (see below)?

In the meanwhile I prepared a selfcontained testcase (see below). I get 20,
exactly as happens when runnning v3 testsuite.

Thanks, Paolo.

////////////////////////////////

#define _GNU_SOURCE 1

#include <string.h>
#include <wchar.h>
#include <locale.h>

#define __c_locale __locale_t

int main()
{
  int wcmp;

  const char*   __s = "de_DE";
  const wchar_t* __one = L"Äuglein";
  const wchar_t* __two = L"Augmen";

  __c_locale    loc;

  loc = __newlocale(1 << LC_ALL, __s, 0);

  wcmp = __wcscoll_l(__one, __two, loc);
  /* wcmp = 20 */

  return 0;
}




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]