[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Critical : setlocale changes behavior in libc2.2
From: |
Ulrich Drepper |
Subject: |
Re: Critical : setlocale changes behavior in libc2.2 |
Date: |
28 Nov 2000 21:36:43 -0800 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Capitol Reef) |
Jody Goldberg <address@hidden> writes:
> tmp = strdup (setlocale (LC_NUMERIC, NULL));
> setlocale (LC_NUMERIC, "C");
> <operation>
> setlocale (LC_NUMERIC, tmp);
> free (tmp);
The info pages tell you to use strdup(). Anything else is wrong. Fix
the applications which have problems.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------