Avoid doubling \ in common case of "c-maybe" quoting style.
authorEric Blake <ebb9@byu.net>
Sat, 16 Feb 2008 14:40:47 +0000 (07:40 -0700)
committerEric Blake <ebb9@byu.net>
Sat, 16 Feb 2008 14:41:39 +0000 (07:41 -0700)
commit3d986f521cac261e29c043be50bb626f7641d841
tree7283da65093dc208326a0df22a889ed5009e27f1
parentdf4e570bc75f0ec8234ded88b130d934a630dedd
Avoid doubling \ in common case of "c-maybe" quoting style.

* lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
eliding outer quotes.
* lib/quotearg.h: Document this.
* tests/test-quotearg.c (result_strings, inputs, results_g)
(flag_results, locale_results): Test it by adding a new string to
each test group.
(compare_strings): Test new string.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/quotearg.c
lib/quotearg.h
tests/test-quotearg.c