Fix string escape var and url styles

Turns out I broke these in my zeal to remove wcs2string.

This reverts commit 583d771b10.

Fixes #5322.
This commit is contained in:
Fabian Homborg
2018-11-07 12:37:47 +01:00
parent bfd50863b8
commit 460bc00698
4 changed files with 37 additions and 8 deletions

View File

@@ -129,6 +129,17 @@ __a__b__c__
# string escape --style=var -- -
_2D_
####################
# string escape with multibyte chars
a%C3%B6b
%E4%B8%AD
aöb
a_C3_B6_b
_E4_B8_AD_
aöb
####################
# set x (string unescape (echo \x07 | string escape))
success