bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wcwidth failure on RedHat Linux 7.3 (coreutils-6.9.91)


From: Bruno Haible
Subject: Re: wcwidth failure on RedHat Linux 7.3 (coreutils-6.9.91)
Date: Mon, 7 Jan 2008 23:29:59 +0100
User-agent: KMail/1.5.4

Peter Fales wrote:
> This change fixes the problem in in test-wcwidth.

Thanks for confirming this. I'm applying this change to the test. (One
can hardly say "fix", since the behaviour of various Unicode characters in
wcwidth is not clearly standardized.)

2008-01-01  Bruno Haible  <address@hidden>

        * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
        failure on older glibc systems.
        Reported by Peter Fales <address@hidden>.

*** tests/test-wcwidth.c.orig   2008-01-01 16:00:49.000000000 +0100
--- tests/test-wcwidth.c        2008-01-01 16:00:37.000000000 +0100
***************
*** 1,5 ****
  /* Test of wcwidth() function.
!    Copyright (C) 2007 Free Software Foundation, Inc.
  
     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
--- 1,5 ----
  /* Test of wcwidth() function.
!    Copyright (C) 2007-2008 Free Software Foundation, Inc.
  
     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
***************
*** 57,63 ****
  
        /* Test width of some format control characters.  */
        ASSERT (wcwidth (0x200E) <= 0);
!       ASSERT (wcwidth (0x2060) == 0);
  #if 0  /* wchar_t may be only 16 bits.  */
        ASSERT (wcwidth (0xE0001) <= 0);
        ASSERT (wcwidth (0xE0044) <= 0);
--- 57,63 ----
  
        /* Test width of some format control characters.  */
        ASSERT (wcwidth (0x200E) <= 0);
!       ASSERT (wcwidth (0x2060) <= 0);
  #if 0  /* wchar_t may be only 16 bits.  */
        ASSERT (wcwidth (0xE0001) <= 0);
        ASSERT (wcwidth (0xE0044) <= 0);






reply via email to

[Prev in Thread] Current Thread [Next in Thread]