/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
- #!/bin/sh
- # $Id: inputbox6-utf8,v 1.8 2010/01/13 10:20:03 tom Exp $
- . ./setup-vars
- . ./setup-tempfile
- . ./setup-utf8
- $DIALOG \
- --title `printf "\xe3\x81\x82\xe3\x81\x84\xe3\x81\x86\xe3\x81\x88\xe3\x81\x8a"` "$@" \
- --inputbox `printf "\xe3\x81\x82\xe3\x81\x84\xe3\x81\x86\xe3\x81\x88\xe3\x81\x8a"` \
- 10 20 "D.O.G" 2>$tempfile
- retval=$?
- . ./report-tempfile