]> git.draconx.ca Git - dxcommon.git/blobdiff - tests/functions.at
help_print_optstring: Test fullwidth/halfwidth character output.
[dxcommon.git] / tests / functions.at
index 165376c97f59cf23d1c6c865e7003f1a78776850..fd1e10f5588460f36882c766285a5b56759011fa 100644 (file)
@@ -110,6 +110,23 @@ AT_CHECK([m4_join([ ],
 
 AT_CLEANUP
 
+AT_SETUP([help_print_optstring (NLS fullwidth/halfwidth)])
+AT_KEYWORDS([help nls])
+
+AT_SKIP_IF([test ! -x "$builddir/t/helpopt3"])
+TEST_UTF8_LOCALE([locale_utf8])
+
+AT_CHECK([m4_join([ ],
+  [LC_ALL=$locale_utf8 "$builddir/t/helpopt3"],
+  [--全角],
+  [--ハンカク],
+  )], [0],
+[[  --全角   8
+  --ハンカク       8
+]])
+
+AT_CLEANUP
+
 AT_BANNER([Miscellaneous functions])
 
 TEST_TAP_SIMPLE([copyright_symbol], [copysym], [], [])