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

Bug#59802: libc6: setlocale(LC_ALL, "") causes segfaults if LANG or LC_ALL is not set



Package: libc6
Version: 2.1.3-6
Severity: normal

Hi,

The following simple program will segfault towupper() if LANG or LC_ALL is 
not set in the environment. I've also filed a bug against glibc - gnats 
PR number is 1632. 

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

int
main()
{
    wint_t wc = 'A';
    setlocale(LC_ALL, "");
    towupper(wc);
}

System Information
Debian Release: 2.2
Kernel Version: Linux sonali 2.2.9 #1 Tue Jun 1 16:28:46 IST 1999 i686 unknown

Versions of the packages libc6 depends on:
ii  ldso           1.9.11-5       The Linux dynamic linker, library and utilit


Reply to: