Bug 36565

Summary: x11/XFree86-4-libraries doesn't install en_US.ISO8859-15 locale
Product: Ports & Packages Reporter: corecode <corecode>
Component: Individual Port(s)Assignee: Eric Anholt <anholt>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description corecode@corecode.ath.cx 2002-03-31 09:20:01 UTC
	mentioned port does not install en_US.ISO8859-15 locale (missing lines in locale.dir)

Fix: i don't know the structure of this port, but following patch solved the problem,
	so this should somewhere be adapted.
How-To-Repeat: 	LANG=en_US.ISO8859-15 xterm

	xterm will complain about Xlib not supporting this locale.
Comment 1 corecode@corecode.ath.cx 2002-03-31 11:59:31 UTC
somebody please test this, i'm getting strange segfaults with gtk apps:

#include <gtk/gtkmain.h>

int main(int argc, char *argv[]) {
    gtk_set_locale();
    gtk_init(&argc, &argv);
    return 0;
}

this will segfault with LANG=en_US.ISO8859-15 and LC_*="" and the patch
applied.
if one comments out the first line (gtk_set_locale()) everything works
ok. does somebody have a clue about that?
i'm sorry but i'm not into X coding; i can't tell where the problem is:

GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...
Core was generated by `gtktest'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/X11R6/lib/libgtk12.so.2...done.
Reading symbols from /usr/X11R6/lib/libgdk12.so.2...done.
Reading symbols from /usr/lib/libc.so.4...done.
Reading symbols from /usr/local/lib/libgmodule12.so.3...done.
Reading symbols from /usr/local/lib/libglib12.so.3...done.
Reading symbols from /usr/local/lib/libintl.so.1...done.
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Reading symbols from /usr/lib/libm.so.2...done.
Reading symbols from /usr/X11R6/lib/libXThrStub.so.6...done.
Reading symbols from /usr/X11R6/lib/X11/locale/common/xlcDef.so.2...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0  0x2838c85c in ?? ()
(gdb) #0  0x2838c85c in ?? ()
No symbol table info available.
#1  0x28302169 in _XDynamicRegisterIMInstantiateCallback ()
   from /usr/X11R6/lib/libX11.so.6
No symbol table info available.
#2  0x282e511e in XRegisterIMInstantiateCallback ()
   from /usr/X11R6/lib/libX11.so.6
No symbol table info available.
#3  0x281ae35a in gdk_im_open () from /usr/X11R6/lib/libgdk12.so.2
No symbol table info available.
#4  0x2819e0e5 in gdk_init_check () from /usr/X11R6/lib/libgdk12.so.2
No symbol table info available.
#5  0x804a392 in gtk_init_check ()
No symbol table info available.
#6  0x804a792 in gtk_init ()
No symbol table info available.
#7  0x804bb37 in main (argc=0, argv=0x0) at gtktest.c:5
No locals.
(gdb) 

perhaps somebody can confirm that. perhaps this should be directed to
xfree86.org?

cheerz
  simon

ps: happy easter!


-- 
/"\   http://corecode.ath.cx/
\ /
 \     ASCII Ribbon Campaign
/ \  Against HTML Mail and News
Comment 2 corecode@corecode.ath.cx 2002-07-17 14:20:26 UTC
okay, the last patch lacked some stuff ;]
this one really works.

seen by: NetBSD

Index: files/patch-f
===================================================================
RCS file: /home/ncvs/ports/x11/XFree86-4-libraries/files/patch-f,v
retrieving revision 1.6
diff -u -r1.6 patch-f
--- files/patch-f	16 Mar 2002 23:40:17 -0000	1.6
+++ files/patch-f	17 Jul 2002 13:12:46 -0000
@@ -1,6 +1,14 @@
---- nls/compose.dir.orig	Thu Nov 22 07:29:11 2001
-+++ nls/compose.dir	Sat Jan 19 22:12:13 2002
-@@ -211,7 +211,7 @@
+--- nls/compose.dir.orig	Wed Nov 21 23:29:11 2001
++++ nls/compose.dir	Wed Jul 17 15:05:38 2002
+@@ -62,6 +62,7 @@
+ iso8859-1/Compose:		en_TT.ISO8859-1
+ iso8859-1/Compose:		en_UK.ISO8859-1
+ iso8859-1/Compose:		en_US.ISO8859-1
++iso8859-15/Compose:		en_US.ISO8859-15
+ iso8859-1/Compose:		en_ZA.ISO8859-1
+ iso8859-3/Compose:		eo_XX.ISO8859-3
+ iso8859-1/Compose:		es_AR.ISO8859-1
+@@ -211,7 +212,7 @@
  zh_CN/Compose:			zh_CN.GB2312
  zh_CN.gbk/Compose:		zh_CN.GBK
  zh_TW.big5/Compose:		zh_TW.big5
@@ -9,8 +17,8 @@
  zh_TW/Compose:			zh_TW.eucTW
  XCOMM
  XCOMM
---- nls/locale.alias.orig	Thu Dec 20 06:29:40 2001
-+++ nls/locale.alias	Sat Jan 19 22:22:20 2002
+--- nls/locale.alias.orig	Wed Dec 19 22:29:40 2001
++++ nls/locale.alias	Sat Jul  6 01:02:07 2002
 @@ -637,18 +637,18 @@
  yi_US.MICROSOFT-CP1255:				yi_US.CP1255
  zh:						zh_CN.eucCN
@@ -34,9 +42,17 @@
  zh_TW.EUC:					zh_TW.eucTW
  
  XCOMM The following locale names are used in SCO 3.0
---- nls/locale.dir.orig	Thu Jan 10 01:14:16 2002
-+++ nls/locale.dir	Sat Jan 19 22:16:56 2002
-@@ -216,7 +216,7 @@
+--- nls/locale.dir.orig	Wed Jan  9 17:14:16 2002
++++ nls/locale.dir	Wed Jul 17 15:06:35 2002
+@@ -68,6 +68,7 @@
+ iso8859-1/XLC_LOCALE:			en_TT.ISO8859-1
+ iso8859-1/XLC_LOCALE:			en_UK.ISO8859-1
+ iso8859-1/XLC_LOCALE:			en_US.ISO8859-1
++iso8859-15/XLC_LOCALE:			en_US.ISO8859-15
+ iso8859-1/XLC_LOCALE:			en_ZA.ISO8859-1
+ iso8859-3/XLC_LOCALE:			eo_EO.ISO8859-3
+ iso8859-3/XLC_LOCALE:			eo_XX.ISO8859-3
+@@ -216,7 +217,7 @@
  zh_CN.gbk/XLC_LOCALE:			zh_CN.gbk
  zh_HK.big5/XLC_LOCALE:			zh_HK.big5
  zh_HK.big5hkscs/XLC_LOCALE:		zh_HK.big5hkscs
@@ -45,8 +61,8 @@
  zh_TW/XLC_LOCALE:			zh_TW.eucTW
  XCOMM Note: The UTF-8 locales don't work correctly yet. Work in progress.
  en_US.UTF-8/XLC_LOCALE:			af_ZA.UTF-8
---- nls/Compose/Imakefile.orig	Sat Nov  3 08:29:28 2001
-+++ nls/Compose/Imakefile	Sat Jan 19 22:17:40 2002
+--- nls/Compose/Imakefile.orig	Sat Nov  3 00:29:28 2001
++++ nls/Compose/Imakefile	Sat Jul  6 01:02:07 2002
 @@ -70,5 +70,5 @@
  ComposeTarget(zh_CN)
  ComposeTarget(zh_CN.gbk)
@@ -54,8 +70,8 @@
 -ComposeTarget(zh_TW.big5)
 +ComposeTarget(zh_TW.Big5)
  
---- nls/XI18N_OBJS/Imakefile.orig	Fri Nov 16 09:52:31 2001
-+++ nls/XI18N_OBJS/Imakefile	Sun Jan 20 01:08:44 2002
+--- nls/XI18N_OBJS/Imakefile.orig	Fri Nov 16 01:52:31 2001
++++ nls/XI18N_OBJS/Imakefile	Sat Jul  6 01:02:07 2002
 @@ -57,7 +57,7 @@
  XI18NTarget(zh_CN.gbk)
  XI18NTarget(zh_HK.big5hkscs)
@@ -65,8 +81,8 @@
  XI18NTarget(th_TH)
  XI18NTarget(en_US.UTF-8)
  #ifdef UXPArchitecture
---- nls/XLC_LOCALE/Imakefile.orig	Fri Nov  2 08:35:28 2001
-+++ nls/XLC_LOCALE/Imakefile	Sat Jan 19 22:19:27 2002
+--- nls/XLC_LOCALE/Imakefile.orig	Fri Nov  2 00:35:28 2001
++++ nls/XLC_LOCALE/Imakefile	Sat Jul  6 01:02:07 2002
 @@ -89,7 +89,7 @@
  LTarget(zh_HK.big5)
  LTarget(zh_HK.big5hkscs)

-- 
/"\   http://corecode.ath.cx/#donate
\ /
 \     ASCII Ribbon Campaign
/ \  Against HTML Mail and News
Comment 3 Patrick Li freebsd_committer freebsd_triage 2002-07-26 00:03:03 UTC
Responsible Changed
From-To: freebsd-ports->anholt

Over to maintainer
Comment 4 Eric Anholt freebsd_committer freebsd_triage 2002-11-25 00:11:11 UTC
State Changed
From-To: open->closed

Committed, thanks.