- #/usr/bin/ksh93
- #
- # tojhira1.ksh - towctrans()/ksh93 typeset -M demo
- #
- # Written by Roland Mainz <roland.mainz@nrubsig.org>
- #
- export LC_ALL='ja_JP.UTF-8'
- # see which wctrans transformations are supported by the locale
- locale -c LC_CTYPE -k | grep -F 'ctype-map-names='
- typeset -M tojhira x
- typeset s
- typeset -li16 hexcount
- for (( hexcount=0x0001 ; hexcount < 0x10FFFF ; hexcount++ )) ; do
- s="${ printf "\u[${hexcount#16#}]" ;}"
- x="$s"
- if [[ "$s" != "$x" ]] ; then
- printf $"0x%x/%d:\t%q != %q\n" hexcount hexcount "$s" "$x"
- fi
- done
- print $"done."
- # EOF.
tojhira1.ksh - towctrans()/ksh93 typeset -M demo
Posted by Anonymous on Tue 21st Feb 2023 16:49
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.