bug-gnulib
[Top][All Lists]
Advanced

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

Re: lib/exclude.c calls towlower() without checking for wideline support


From: Alan Hourihane
Subject: Re: lib/exclude.c calls towlower() without checking for wideline support
Date: Tue, 01 Sep 2009 10:08:10 +0100

On Thu, 2009-08-27 at 15:24 +0100, Alan Hourihane wrote:
> As the subject line says, and I end up with an unresolved symbol.
> 
> Not sure what the right definition check to wrap that up in though.

Not sure this is right, but it works....

Alan.

diff --git a/lib/exclude.c b/lib/exclude.c
index 32f2a0a..eb44698 100644
--- a/lib/exclude.c
+++ b/lib/exclude.c
@@ -162,9 +162,11 @@ string_hasher_ci (void const *data, size_t
n_buckets)
       mbchar_t m = mbui_cur (iter);
       wchar_t wc;
 
+#ifdef COMPILE_WIDE
       if (m.wc_valid)
        wc = towlower (m.wc);
       else
+#endif
        wc = *m.ptr;
 
       value = (value * 31 + wc) % n_buckets;






reply via email to

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