quotearg: fix right quote escaping when it's in quote_these_too
authorJoel E. Denny <jdenny@clemson.edu>
Sun, 23 Aug 2009 00:26:46 +0000 (20:26 -0400)
committerJoel E. Denny <jdenny@clemson.edu>
Sun, 23 Aug 2009 22:30:34 +0000 (18:30 -0400)
commitf6fe750d033c40b403688dc3eee9dbff468aa8f3
treed6db3eed89a0ec5ad49314bb033125d30323a83e
parent3293597efd0255a347b8a71890f08f605ef267b4
quotearg: fix right quote escaping when it's in quote_these_too

* lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
quote, be sure to prepend only one backslash.
* tests/test-quotearg.c (use_quote_double_quotes): New function.
(main): Test it.
ChangeLog
lib/quotearg.c
tests/test-quotearg.c