chiark / gitweb /
util: handle \s escape as defined in the XDG spec properly in cunescape()
authorLennart Poettering <lennart@poettering.net>
Wed, 7 Jul 2010 20:28:51 +0000 (22:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 7 Jul 2010 20:28:51 +0000 (22:28 +0200)
src/util.c

index 5103cc6..a01229e 100644 (file)
@@ -1182,6 +1182,11 @@ char *cunescape_length(const char *s, size_t length) {
                         *(t++) = '\'';
                         break;
 
+                case 's':
+                        /* This is an extension of the XDG syntax files */
+                        *(t++) = ' ';
+                        break;
+
                 case 'x': {
                         /* hexadecimal encoding */
                         int a, b;