Bug 71689 - diffutils-2.8.4-r4 is utf-8 aware
Bug#: 71689 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: utf8@gentoo.org Reported By: caglar@pardus.org.tr
Component: Core system
URL:  http://www.gnu.org/software/diffutils/diffutils.html
Summary: diffutils-2.8.4-r4 is utf-8 aware
Keywords:  
Status Whiteboard: 
Opened: 2004-11-18 12:01 0000
Description:   Opened: 2004-11-18 12:01 0000
diffutils-2.8.4-r4 is not working with utf-8 locales

------- Comment #1 From S.Caglar Onur 2004-11-18 12:05:08 0000 -------
Created an attachment (id=44241) [details]
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 From SpanKY 2004-12-16 21:37:04 0000 -------
is a patch still needed for 2.8.7 ?

------- Comment #3 From S.Caglar Onur 2004-12-16 23:10:23 0000 -------
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 From S.Caglar Onur 2004-12-16 23:10:23 0000 -------
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 From S.Caglar Onur 2004-12-16 23:10:47 0000 -------
Created an attachment (id=46193) [details]
test1

------- Comment #6 From S.Caglar Onur 2004-12-16 23:11:02 0000 -------
Created an attachment (id=46194) [details]
test2

------- Comment #7 From S.Caglar Onur 2004-12-16 23:11:59 0000 -------
Attached test1 and test2 files are same in tr_TR.UTF-8 locale.

------- Comment #8 From SpanKY 2004-12-16 23:14:58 0000 -------
can you attach an updated patch then for 2.8.7 ?

------- Comment #9 From S.Caglar Onur 2004-12-17 14:30:59 0000 -------
Created an attachment (id=46237) [details]
diffutils-2.8.7-i18n.patch

New version of patch as requested...

------- Comment #10 From S.Caglar Onur 2004-12-17 14:31:40 0000 -------
Created an attachment (id=46238) [details]
diffutils-2.8.7.ebuild.patch

------- Comment #11 From SpanKY 2005-01-03 19:43:04 0000 -------
fixed in 2.8.7-r1, thanks !