quilt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Quilt-dev] [PATCH] Simplify calling user-specified diff with original L


From: Urs Thuermann
Subject: [Quilt-dev] [PATCH] Simplify calling user-specified diff with original LANG environment
Date: 28 Feb 2020 22:02:15 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Author: Urs Thuermann <address@hidden>
Date:   Tue Feb 11 06:42:02 2020 +0100

Simplify calling user-specified diff with original LANG environment

diff --git a/quilt/diff.in b/quilt/diff.in
index dc021f0..edee329 100644
--- a/quilt/diff.in
+++ b/quilt/diff.in
@@ -113,9 +113,7 @@ do_diff()
                [ -s "$new_file" ] || new_file=/dev/null
                if ! diff -q "$old_file" "$new_file" >/dev/null
                then
-                       export LANG=$ORIGINAL_LANG
-                       $opt_diff "$old_file" "$new_file"
-                       export LANG=POSIX
+                       LANG=$ORIGINAL_LANG $opt_diff "$old_file" "$new_file"
                        true
                fi
        else



reply via email to

[Prev in Thread] Current Thread [Next in Thread]