-#if __STDC_ISO_10646__ && HAVE_WCTOMB
-
-/* Values of type wchar_t are Unicode code points. */
-
-/* Place into BUF the locale-dependent representation of the character
- CODE. Return the size of the result. If there is a conversion
- error, return -1, setting errno appropriately. Assumes that the
- locale doesn't change between two calls. */
-static size_t
-convert_unicode_char (char buf[MB_LEN_MAX], unsigned int code)
-{
- wchar_t wc = code;
- errno = 0;
- /* Test for truncation before invoking wctomb. */
- return wc == code ? wctomb (buf, wc) : -1;
-}
-
-#else
-