Quote multibyte characters correctly.
authorJim Meyering <jim@meyering.net>
Sat, 15 Jan 2000 11:57:11 +0000 (11:57 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 15 Jan 2000 11:57:11 +0000 (11:57 +0000)
commitc3f357adf56d5d012426948dadf7d4156565ea76
tree1836eef2736b7d2246d59915b589a3d7e71cc933
parent78992ab94fbd6caa50c1284027e0963fd24c6dac
Quote multibyte characters correctly.

(ISGRAPH): Remove.
(ISPRINT): New macro.
(<wchar.h>): Include if HAVE_MBRTOWC && HAVE_WCHAR_H.
(isprint, mbrtowc, mbsinit, mbstate_t): New macros,
defined if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
(quotearg_buffer_restyled): New function, with most of the old
quotearg_buffer's contents.
Major rewrite to support multibyte characters.
(quotearg_buffer): Now just calls quotearg_buffer_restyled.
lib/quotearg.c