Fix occasional garbled characters in output of the set builtin

darcs-hash:20061019152418-ac50b-2ef6e93820deb5e272f28f893c51dca642a6b080.gz
This commit is contained in:
axel 2006-10-20 01:24:18 +10:00
parent 2d05b1c1b4
commit ae16397e1c

View file

@ -358,7 +358,7 @@ static void print_variables(int include_values, int esc, int scope)
for( i = 0; i < al_get_count(&names); i++ )
{
wchar_t *key = (wchar_t *)al_get( &names, i );
wchar_t *e_key = esc ? escape(key, 1) : wcsdup(key);
wchar_t *e_key = esc ? escape(key, 0) : wcsdup(key);
sb_append(sb_out, e_key);