From bel@white.orel.ru  Tue Jul 12 07:58:04 2005
Return-Path: <bel@white.orel.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B7B5516A41C;
	Tue, 12 Jul 2005 07:58:04 +0000 (GMT)
	(envelope-from bel@white.orel.ru)
Received: from white.orel.ru (white.orel.ru [213.59.64.81])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 135EB43D5E;
	Tue, 12 Jul 2005 07:58:03 +0000 (GMT)
	(envelope-from bel@white.orel.ru)
Received: from white.orel.ru (localhost [127.0.0.1])
	by white.orel.ru (8.13.3/8.13.3) with ESMTP id j6C7vZ84036293
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Tue, 12 Jul 2005 11:57:36 +0400 (MSD)
	(envelope-from bel@white.orel.ru)
Received: (from bel@localhost)
	by white.orel.ru (8.13.3/8.13.3/Submit) id j6C7vYQE036290;
	Tue, 12 Jul 2005 11:57:34 +0400 (MSD)
	(envelope-from bel)
Message-Id: <200507120757.j6C7vYQE036290@white.orel.ru>
Date: Tue, 12 Jul 2005 11:57:34 +0400 (MSD)
From: Andrew Belashov <bel@orel.ru>
Reply-To: Andrew Belashov <bel@orel.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc: freebsd-sparc64@freebsd.org
Subject: xorg-libraries/sparc64: locale not supported by Xlib
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         83316
>Category:       ports
>Synopsis:       xorg-libraries/sparc64: locale not supported by Xlib
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-x11
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 12 08:00:38 GMT 2005
>Closed-Date:    Fri Aug 26 18:58:37 GMT 2005
>Last-Modified:  Fri Aug 26 18:58:37 GMT 2005
>Originator:     Andrew Belashov
>Release:        FreeBSD 5.4-STABLE sparc64
>Organization:
JSC CenterTelecom
>Environment:
System: FreeBSD bel.localdomain 5.4-STABLE FreeBSD 5.4-STABLE #27: Thu Jun 9
 15:29:30 MSD 2005 bel@bel.localdomain:/usr/obj/usr/src/sys/SUNC3D sparc64

$ pkg_info|grep xorg-lib
xorg-libraries-6.8.2 X11 libraries and headers from X.Org

$ locale
LANG=ru_RU.KOI8-R
LC_CTYPE="ru_RU.KOI8-R"
LC_COLLATE="ru_RU.KOI8-R"
LC_TIME="ru_RU.KOI8-R"
LC_NUMERIC="ru_RU.KOI8-R"
LC_MONETARY="ru_RU.KOI8-R"
LC_MESSAGES="ru_RU.KOI8-R"
LC_ALL=

>Description:
	Xorg does not support locales on FreeBSD/sparc64. Clipboard paste
does not work in xterm. No way to type national symbols in xterm.

>How-To-Repeat:

	Run xterm and try copy and paste. Try to type national symbols from
keyboard. Use truss(1) for trace open(2) system calls and determine needed
shared libraries.

$ xterm
Warning: locale not supported by Xlib, locale set to C
Warning: X locale modifiers not supported, using default
Failed to open input method

>Fix:

	Here is workaround. Go to lib/X11/locale/common and make symbolic link
to existing directory with shared libraries:

# cd /usr/X11R6/lib/X11/locale/common
# ln -s ../lib/common sparcv9


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-x11 
Responsible-Changed-By: pav 
Responsible-Changed-When: Tue Jul 12 23:11:17 GMT 2005 
Responsible-Changed-Why:  
Over to maintainers 

http://www.freebsd.org/cgi/query-pr.cgi?pr=83316 

From: Dejan Lesjak <dejan.lesjak@ijs.si>
To: bug-followup@freebsd.org,
 bel@orel.ru
Cc:  
Subject: Re: ports/83316: xorg-libraries/sparc64: locale not supported by Xlib
Date: Tue, 16 Aug 2005 00:19:04 +0200

 --Boundary-00=_ZTRADNfnWvYz2bc
 Content-Type: text/plain;
   charset="us-ascii"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 Please try reinstalling x11/xorg-libraries port after putting attached patch 
 into x11/xorg-libraries/files directory. You should of course remove the 
 workaround symlink before trying if this solves the issue.
 (Patch also available at 
 http://www.ijs.si/~lesi/xorg/sparc-locale/patch-XlcDL.c if fetching is easier 
 that way)
 
 --Boundary-00=_ZTRADNfnWvYz2bc
 Content-Type: text/plain;
   charset="us-ascii";
   name="patch-XlcDL.c"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename="patch-XlcDL.c"
 
 --- lib/X11/XlcDL.c.orig	Mon Aug 15 21:55:16 2005
 +++ lib/X11/XlcDL.c	Mon Aug 15 21:56:02 2005
 @@ -56,11 +56,13 @@
  #include "XlcPublic.h"
  #include "XlcPubI.h"
  
 +#if !defined(__FreeBSD__)
  #if defined(_LP64)  && defined(__sparcv9)
  # define	_MACH64_NAME		"sparcv9"
  #else
  # undef _MACH64_NAME
  #endif /* defined(_LP64)  && defined(__sparcv9) */
 +#endif
  
  #ifdef _MACH64_NAME
  #  define	_MACH64_NAME_LEN	(sizeof (_MACH64_NAME) - 1)
 
 --Boundary-00=_ZTRADNfnWvYz2bc--

From: Andrew Belashov <bel@orel.ru>
To: Dejan Lesjak <dejan.lesjak@ijs.si>
Cc: bug-followup@freebsd.org
Subject: Re: ports/83316: xorg-libraries/sparc64: locale not supported by
 Xlib
Date: Tue, 16 Aug 2005 14:41:39 +0400

 Dejan Lesjak wrote:
 > Please try reinstalling x11/xorg-libraries port after putting attached patch 
 > into x11/xorg-libraries/files directory. You should of course remove the 
 > workaround symlink before trying if this solves the issue.
 > (Patch also available at 
 > http://www.ijs.si/~lesi/xorg/sparc-locale/patch-XlcDL.c if fetching is easier 
 > that way)
 > 
 > 
 [patch skipped]
 
 This patch solves the issue. Thanks!

From: Dejan Lesjak <dejan.lesjak@ijs.si>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/83316: xorg-libraries/sparc64: locale not supported by Xlib
Date: Wed, 17 Aug 2005 14:33:59 +0200

 On Tuesday 16 of August 2005 12:41, Andrew Belashov wrote:
 > [patch skipped]
 >
 > This patch solves the issue. Thanks!
 
 Neat, I'll commit after the ports freeze is over. Thanks for report and test!

From: Marius Strobl <marius@alchemy.franken.de>
To: Dejan Lesjak <dejan.lesjak@ijs.si>
Cc: bug-followup@FreeBSD.org, bel@orel.ru
Subject: Re: ports/83316: xorg-libraries/sparc64: locale not supported by Xlib
Date: Thu, 25 Aug 2005 22:58:16 +0200

 I can confirm that your patch solves this issue (actually I came up
 with the same and just noticed later that there was progress on this
 PR). Could you please try to get it approved during freeze so the
 premiere of graphical console support on sparc64 in 6.0 is as good as
 possible? :)
 
 Thanks,
 Marius
 
State-Changed-From-To: open->closed 
State-Changed-By: lesi 
State-Changed-When: Fri Aug 26 18:57:53 GMT 2005 
State-Changed-Why:  
Fix committed. It should be there in 6.0 release packages. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=83316 
>Unformatted:
