translating "\ No newline at end of file" produces diffs that don't apply

Bug #708897 reported by Ákos Pálfi
6
This bug affects 1 person
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)
ProcVersionSignature: Ubuntu 2.6.32-28.55-generic 2.6.32.27+drm33.12
Uname: Linux 2.6.32-28-generic x86_64
NonfreeKernelModules: nvidia
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

Revision history for this message
Ákos Pálfi (akos-palfi) wrote :
description: updated
description: updated
Samuel Bronson (naesten)
summary: - diff tool generates wrong unified diff
+ translating "\ No newline at end of file" produces diffs that don't
+ apply
Samuel Bronson (naesten)
no longer affects: patch (Ubuntu)
Revision history for this message
Samuel Bronson (naesten) wrote :

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=bcce1233902dc7a94623b3a90cd7920c44f22474#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.)

Adam Conrad (adconrad)
Changed in diffutils (Ubuntu):
status: New → Incomplete
Changed in patch (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for diffutils (Ubuntu) because there has been no activity for 60 days.]

Changed in diffutils (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for patch (Ubuntu) because there has been no activity for 60 days.]

Changed in patch (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.