Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71689 - diffutils-2.8.4-r4 is utf-8 aware
Summary: diffutils-2.8.4-r4 is utf-8 aware
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: utf8 herd (RETIRED)
URL: http://www.gnu.org/software/diffutils...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-18 12:01 UTC by S.Caglar Onur
Modified: 2005-01-03 19:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
diffutils-2.8.4-i18n.patch (diffutils-2.8.4-i18n.patch,17.56 KB, patch)
2004-11-18 12:05 UTC, S.Caglar Onur
Details | Diff
test1 (test1,53 bytes, text/plain)
2004-12-16 23:10 UTC, S.Caglar Onur
Details
test2 (test2,52 bytes, text/plain)
2004-12-16 23:11 UTC, S.Caglar Onur
Details
diffutils-2.8.7-i18n.patch (diffutils-2.8.7-i18n.patch,26.13 KB, patch)
2004-12-17 14:30 UTC, S.Caglar Onur
Details | Diff
diffutils-2.8.7.ebuild.patch (diffutils-2.8.7.ebuild.patch,546 bytes, patch)
2004-12-17 14:31 UTC, S.Caglar Onur
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description S.Caglar Onur 2004-11-18 12:01:18 UTC
diffutils-2.8.4-r4 is not working with utf-8 locales
Comment 1 S.Caglar Onur 2004-11-18 12:05:08 UTC
Created attachment 44241 [details, diff]
diffutils-2.8.4-i18n.patch

This patch is from mandrake. It solves lots of utf-8 problem but it doesnt work
with tr_TR.UTF-8 locale because of our i/I problem.

Full story can be found on http://www.i18nguy.com/unicode/turkish-i18n.html,
"Turkish Case Mappings and Case-Insensitivity" section :)
Comment 2 SpanKY gentoo-dev 2004-12-16 21:37:04 UTC
is a patch still needed for 2.8.7 ?
Comment 3 S.Caglar Onur 2004-12-16 23:10:23 UTC
Same situation for diffutils-2.8.7, sample output;

$ diff -iu test1 test2
--- test1       2004-12-17 09:06:46.584342568 +0200
+++ test2       2004-12-17 09:07:14.457105264 +0200
@@ -1,5 +1,4 @@
-
Comment 4 S.Caglar Onur 2004-12-16 23:10:23 UTC
Same situation for diffutils-2.8.7, sample output;

$ diff -iu test1 test2
--- test1       2004-12-17 09:06:46.584342568 +0200
+++ test2       2004-12-17 09:07:14.457105264 +0200
@@ -1,5 +1,4 @@
-çağlar onur
-barış metin
-gürer özen
+ÇAĞLAR ONUR
+BARIŞ METİN
+GÜRER ÖZEN
 murat eren

$ diff --version
diff (GNU diffutils) 2.8.7
Written by Paul Eggert, Mike Haertel, David Hayes,
Richard Stallman, and Len Tower.

Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Comment 5 S.Caglar Onur 2004-12-16 23:10:47 UTC
Created attachment 46193 [details]
test1
Comment 6 S.Caglar Onur 2004-12-16 23:11:02 UTC
Created attachment 46194 [details]
test2
Comment 7 S.Caglar Onur 2004-12-16 23:11:59 UTC
Attached test1 and test2 files are same in tr_TR.UTF-8 locale.
Comment 8 SpanKY gentoo-dev 2004-12-16 23:14:58 UTC
can you attach an updated patch then for 2.8.7 ?
Comment 9 S.Caglar Onur 2004-12-17 14:30:59 UTC
Created attachment 46237 [details, diff]
diffutils-2.8.7-i18n.patch

New version of patch as requested...
Comment 10 S.Caglar Onur 2004-12-17 14:31:40 UTC
Created attachment 46238 [details, diff]
diffutils-2.8.7.ebuild.patch
Comment 11 SpanKY gentoo-dev 2005-01-03 19:43:04 UTC
fixed in 2.8.7-r1, thanks !