summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@gnu.org>2012-08-14 00:30:46 +0200
committerJim Meyering <meyering@redhat.com>2012-09-10 14:31:23 +0200
commite17295dc5529b252c269f12e081184bbde42d575 (patch)
tree5d8492c0bdada2f5e78333e22ff21121da17f810 /NEWS
parentbaeaa83e31da3a1a36d2a1f76140b67ff76859fe (diff)
downloaddiffutils-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--NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 567fa3d..ce0d8c2 100644
--- a/NEWS
+++ b/NEWS
@@ -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.