Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

print -v with multibyte characters



Hi,

  $ echo $ZSH_VERSION
  5.7.1
  $ export {LC_ALL,LANG}=en_US.UTF-8
  $ set -o multibyte && echo ok
  ok

Good:
  $ print ÖÓŐöóő
  ÖÓŐöóő
  $ printf -v var ÖÓŐöóő; echo $var
  ÖÓŐöóő

Bad:
  $ print -v var ÖÓŐ; echo $var
  öó
  $ print -v var öóő; echo $var
  öóŃ

--
zsugabubus



Messages sorted by: Reverse Date, Date, Thread, Author