+2000-06-27 Ulrich Drepper <drepper@redhat.com>
+
+ * wctype/towctrans.c (__towctrans): Be graceful and accept error
+ return values from the wctrans function.
+
2000-06-27 Greg McGary <greg@mcgary.org>
* elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
/* Map wide character using given mapping.
- Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
{
size_t idx;
+ /* If the user passes in an invalid DESC valid (the one returned from
+ `wctrans' in case of an error) simply return the value. */
+ if (desc == (wctrans_t) 0)
+ return wc;
+
idx = cname_lookup (wc);
if (idx == ~((size_t) 0))
/* Character is not known. Default action is to simply return it. */