search for: test_nonprinting_escap

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

2014 Oct 31
0
[PATCH 2/3] fish: basic tests for readline escaping
...+test_singleword_unescape (void) +{ + return eq_bracket(bs_unescape_filename, "singleword", "singleword"); +} + +int +test_multiword_escape (void) +{ + return eq_bracket(bs_escape_filename, "more than one word\n", "more\\ than\\ one\\ word\\n"); +} + +int +test_nonprinting_escape (void) +{ + return eq_bracket(bs_escape_filename, "\xac\xec\x8", "\\xac\\xec\\b"); +} + +int +test_multiword_unescape (void) +{ + return eq_bracket(bs_unescape_filename, "more\\ than\\ one\\ word", "more than one word"); +} + +int +test_nonprinting_unescap...
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: