+
+#ifdef MULTIBYTE_SUPPORT
+ (void) mbtowc (NULL, NULL, 0); /* reset shift state */
+ char_len = 0;
+#else
+ NMH_UNUSED (char_len);
+#endif
+
+ while (*string) {
+ flags &= ~INVISIBLE;
+#ifdef MULTIBYTE_SUPPORT
+ /* mbtowc should never return 0, because *string is non-NULL. */
+ if (char_len <= 0) {
+ /* Find number of bytes in next character. */
+ if ((char_len =
+ mbtowc (NULL, string, (size_t) MB_CUR_MAX)) == -1) {
+ char_len = 1;
+ }
+ } else {
+ /* Multibyte character, after the first byte. */
+ flags |= INVISIBLE;
+ }
+
+ --char_len;
+#endif
+ putch (*string++, flags);
+ }