search for: debsquote_filenam

Displaying 2 results from an estimated 2 matches for "debsquote_filenam".

Did you mean: debsquote_filename
2014 Oct 31
0
[PATCH 1/3] fish: rl.{c, h} - escaping functions for readline
...+ case '?': *(n++) = '\\'; *n = '?'; break; + case ' ': *(n++) = '\\'; *n = ' '; break; + + default: + // Hexadecimal escape unprintable character. This violates identity + // after composition of bsquote_filename after debsquote_filename + // (i.e. can escape some characters differently). + if (!c_isprint(*p)) { + n += sprintf(n, "\\x%x", (int) (*p & 0xff)) - 1; + } else { + *n = *p; + } + break; + error: + fprintf (stderr, ("%s: invalid escape seq...
2014 Oct 31
6
[PATCH 0/3] WIP readline escaping functions
From: Maros Zatko <hacxman@gmail.com> Auxiliary functions for readline to support space character escaping in filenames in future. Escaping function is taken from fish.c (used to be parse_quoted_string) plus its un-escaping counterpart. There are a few tests for both. Maros Zatko (3): fish: rl.{c,h} - escaping functions for readline fish: basic tests for readline escaping autotools: