aboutsummaryrefslogtreecommitdiffstats
path: root/util/strgutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/strgutil.c')
-rw-r--r--util/strgutil.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/strgutil.c b/util/strgutil.c
index 7b72bbbe3..c4fafe562 100644
--- a/util/strgutil.c
+++ b/util/strgutil.c
@@ -476,7 +476,8 @@ utf8_to_native( const char *string, size_t length, int delim )
}
if( !nleft ) {
if( !(*s & 0x80) ) { /* plain ascii */
- if( *s < 0x20 || *s == 0x7f || *s == delim) {
+ if( *s < 0x20 || *s == 0x7f || *s == delim ||
+ (delim && *s=='\\')) {
n++;
if( p )
*p++ = '\\';