diff options
author | Andreas Gruenbacher <agruen@gnu.org> | 2012-08-14 00:30:46 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-09-10 14:31:23 +0200 |
commit | e17295dc5529b252c269f12e081184bbde42d575 (patch) | |
tree | 5d8492c0bdada2f5e78333e22ff21121da17f810 /NEWS | |
parent | baeaa83e31da3a1a36d2a1f76140b67ff76859fe (diff) | |
download | diffutils-e17295dc5529b252c269f12e081184bbde42d575.tar.gz |
diff: encode file names with special characters
* src/util.c (c_escape_char): New function.
(c_escape): New function.
(begin_output): Escape file names when needed.
* src/context.c (print_context_header): New names parameter.
(print_context_label): New name parameter.
* src/diff.h (print_context_header): Change prototype.
* tests/filename-quoting: New file.
* NEWS: Document this change.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -7,6 +7,11 @@ GNU diffutils NEWS -*- outline -*- --new-file (-N) and --unidirectional-new-file now allow comparisons to "-". A standard input that's closed acts like a nonexistent file. + A file name containing spaces, double quotes, backslashes or control + characters is now encoded in a diff header as a double-quoted C string + literal. The escape sequences \\, \", \a, \b, \f, \n, \r, \t, \v and + \ooo (a three-digit octal number between 0 and 255) are used. + ** Packaging diffutils is now designed to build with Cygwin or MinGW rather than DJGPP. |