The regex code is working with pg_wchar strings, which aren't
necessarily the same representation that the OS' wide-char functions
expect.  If we could guarantee compatibility then the above plan
would make sense ...

it seems to me, that is possible for UTF8 encoding. So isalpha() function may be defined as:

static int
pg_wc_isalpha(pg_wchar c)
    if ( (c >= 0 && c <= UCHAR_MAX) )
        return isalpha((unsigned char) c)
    else if ( GetDatabaseEncoding() == PG_UTF8 )
        return iswalpha((wint_t) c)
    return 0;

Teodor Sigaev                                   E-mail: [EMAIL PROTECTED]

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?


Reply via email to