Menu

#10 iswspace errors in FreeBSD 4,x

compilation_problem
closed-fixed
nobody
5
2005-09-02
2005-06-27
Anonymous
No

dictP.h defines iswspace__, but str.c and dictfmt.c are not using
iswspace__. This causes compile to fail on FreeBSD 4.x. Attached is
a patch to fix the bug.

Discussion

  • Andy

    Andy - 2005-06-27

    Logged In: YES
    user_id=1303272

    --- str.c.orig Sun Jun 26 23:19:54 2005
    +++ str.c Sun Jun 26 23:20:19 2005
    @@ -74,7 +74,7 @@
    if ((int) len < 0)
    return errno;

    - if (iswspace (ucs4_char)){
    + if (iswspace__ (ucs4_char)){
    *dest++ = ' ';
    }else if (allchars_mode || iswalnum__ (ucs4_char)){
    len2 = wcrtomb__ (dest, towlower__ (ucs4_char), &ps2);
    --- dictfmt.c.orig Sun Jun 26 23:20:02 2005
    +++ dictfmt.c Sun Jun 26 23:20:37 2005
    @@ -356,7 +356,7 @@
    len = mbtowc__ (&mbc, s, MB_CUR_MAX__);
    assert (len >= 0);

    - if (len == 0 || !iswspace (mbc))
    + if (len == 0 || !iswspace__ (mbc))
    break;

    s += len;
    @@ -393,7 +393,7 @@
    len = mbtowc__ (&mbc, s, MB_CUR_MAX__);
    assert (len >= 0);

    - if (len == 0 || !iswspace (mbc))
    + if (len == 0 || !iswspace__ (mbc))
    break;

    s += len;

     
  • Aleksey Cheusov

    Aleksey Cheusov - 2005-09-02
    • status: open --> closed-fixed
     
  • Aleksey Cheusov

    Aleksey Cheusov - 2005-09-02

    Logged In: YES
    user_id=587312

    fixed in CVS

     
MongoDB Logo MongoDB