From ae16397e1cdfa4b556f04d88fd60d7347875a324 Mon Sep 17 00:00:00 2001 From: axel Date: Fri, 20 Oct 2006 01:24:18 +1000 Subject: [PATCH] Fix occasional garbled characters in output of the set builtin darcs-hash:20061019152418-ac50b-2ef6e93820deb5e272f28f893c51dca642a6b080.gz --- builtin_set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin_set.c b/builtin_set.c index c57c52b72..d8ab66bcf 100644 --- a/builtin_set.c +++ b/builtin_set.c @@ -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);