translating "\ No newline at end of file" produces diffs that don't apply
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
diffutils (Ubuntu) |
Expired
|
Undecided
|
Unassigned | ||
patch (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: diffutils
1) Ubuntu Release: 10.04 LTS 64-bit Hungarian
2) diffutils installed version: 1:2.8.1-18
3) Expected: diff tool should generate valid unified diff
4) What happened: The hungarian translation of diff generates wrong diff file, because the diff file contains "\ Nincs újsor a file végén" instead of "\ No newline at end of line".
How to reproduce:
a) install hungarian language pack
b) download and extract attached file
c) open a terminal and navigate to the directory where you extracted the files before
d) set language to hungarian by running: export LANG="hu_HU.utf8"
e) run: diff -rupN services-0.15 services-2.4 > result.diff
f) try to apply this patch by eclipse or patch (does not work)
The string "\ No newline at end of line" should not be translatable.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: diff (not installed)
ProcVersionSign
Uname: Linux 2.6.32-28-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Thu Jan 27 22:32:14 2011
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
ProcEnviron:
LANG=hu_HU.utf8
SHELL=/bin/bash
SourcePackage: diffutils
description: | updated |
description: | updated |
summary: |
- diff tool generates wrong unified diff + translating "\ No newline at end of file" produces diffs that don't + apply |
no longer affects: | patch (Ubuntu) |
Changed in diffutils (Ubuntu): | |
status: | New → Incomplete |
Changed in patch (Ubuntu): | |
status: | New → Incomplete |
Are you *sure* this confuses patch? I can't see why it would; patch has never paid attention to anything but the backslash at the beginning of these lines: <http:// git.savannah. gnu.org/ cgit/patch. git/tree/ pch.c?id= bcce1233902dc7a 94623b3a90cd792 0c44f22474# n1235>.
(And don't be deceived by any timestamps you might see in the git repository: that's from diff 2.2, released on 1997-04-17.)