[Andre Charbonneau <andrec@corel.com>] Bug found in localeconv!
Andreas Jaeger
aj@suse.de
Tue Mar 14 00:45:00 GMT 2000
I've found the appended report on comp.os.linux.development.system.
I'm appending a proper patch. The patch is against glibc 2.1, but is
also needed for glibc 2.2.
Andreas
2000-03-14 Andreas Jaeger <aj@suse.de>
* locale/localeconv.c (localeconv): Fix typo.
Reported by Andre Charbonneau <andrec@corel.com>.
Index: locale/localeconv.c
===================================================================
RCS file: /cvs/glibc/libc/locale/localeconv.c,v
retrieving revision 1.5
diff -u -u -r1.5 localeconv.c
--- localeconv.c 1997/02/15 04:28:07 1.5
+++ localeconv.c 2000/03/14 08:44:16
@@ -43,7 +43,7 @@
result.frac_digits = *(char *) _NL_CURRENT (LC_MONETARY, FRAC_DIGITS);
result.p_cs_precedes = *(char *) _NL_CURRENT (LC_MONETARY, P_CS_PRECEDES);
result.p_sep_by_space = *(char *) _NL_CURRENT (LC_MONETARY, P_SEP_BY_SPACE);
- result.n_cs_precedes = *(char *) _NL_CURRENT (LC_MONETARY, P_CS_PRECEDES);
+ result.n_cs_precedes = *(char *) _NL_CURRENT (LC_MONETARY, N_CS_PRECEDES);
result.n_sep_by_space = *(char *) _NL_CURRENT (LC_MONETARY, N_SEP_BY_SPACE);
result.p_sign_posn = *(char *) _NL_CURRENT (LC_MONETARY, P_SIGN_POSN);
result.n_sign_posn = *(char *) _NL_CURRENT (LC_MONETARY, N_SIGN_POSN);
More information about the Libc-alpha
mailing list