diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-12-06 15:33:02 +0000 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-12-06 15:33:02 +0000 |
commit | 5a76a5d34e75219198d012beed06047fd98c7cae (patch) | |
tree | 4d44e1e99208ccbd33e96049ed235d006da1db10 /Src/zsh.h | |
parent | e14540ac023451a53586b4d2fad00d22c4e98166 (diff) | |
download | zsh-5a76a5d34e75219198d012beed06047fd98c7cae.tar.gz zsh-5a76a5d34e75219198d012beed06047fd98c7cae.tar.xz zsh-5a76a5d34e75219198d012beed06047fd98c7cae.zip |
37314: upgrade quotedzputs() for non-printable output.
Use nicechar with $'..' quoting; upgrade nicechar() etc. to use suitable output.
Diffstat (limited to 'Src/zsh.h')
-rw-r--r-- | Src/zsh.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Src/zsh.h b/Src/zsh.h index d3bfcefcc..caf7def06 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -3051,6 +3051,12 @@ enum { #define AFTERTRAPHOOK (zshhooks + 2) #ifdef MULTIBYTE_SUPPORT +/* Final argument to mb_niceformat() */ +enum { + NICEFLAG_HEAP = 1, /* Heap allocation where needed */ + NICEFLAG_QUOTE = 2, /* Result will appear in $'...' */ +}; + /* Metafied input */ #define nicezputs(str, outs) (void)mb_niceformat((str), (outs), NULL, 0) #define MB_METACHARINIT() mb_charinit() |