Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 71689

Summary: diffutils-2.8.4-r4 is utf-8 aware
Product: Gentoo Linux Reporter: S.Caglar Onur <caglar>
Component: [OLD] Core systemAssignee: utf8 herd (RETIRED) <utf8>
Status: RESOLVED FIXED    
Severity: normal CC: base-system
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
URL: http://www.gnu.org/software/diffutils/diffutils.html
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: diffutils-2.8.4-i18n.patch
test1
test2
diffutils-2.8.7-i18n.patch
diffutils-2.8.7.ebuild.patch

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&#287;lar onur
-bar&#305;&#351; metin
-gürer özen
+ÇA&#286;LAR ONUR
+BARI&#350; MET&#304;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 !