/contrib/dialog/samples/inputbox6-utf8

https://bitbucket.org/freebsd/freebsd-head/ · Shell · 17 lines · 9 code · 6 blank · 2 comment · 0 complexity · b4efab6233d781d7f8573045e30d7d96 MD5 · raw file

  1. #!/bin/sh
  2. # $Id: inputbox6-utf8,v 1.8 2010/01/13 10:20:03 tom Exp $
  3. . ./setup-vars
  4. . ./setup-tempfile
  5. . ./setup-utf8
  6. $DIALOG \
  7. --title `printf "\xe3\x81\x82\xe3\x81\x84\xe3\x81\x86\xe3\x81\x88\xe3\x81\x8a"` "$@" \
  8. --inputbox `printf "\xe3\x81\x82\xe3\x81\x84\xe3\x81\x86\xe3\x81\x88\xe3\x81\x8a"` \
  9. 10 20 "D.O.G" 2>$tempfile
  10. retval=$?
  11. . ./report-tempfile