NetBSD Problem Report #39891

From michal.suchanek@ruk.cuni.cz  Mon Nov 10 12:44:10 2008
Return-Path: <michal.suchanek@ruk.cuni.cz>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id A855B63B898
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 10 Nov 2008 12:44:10 +0000 (UTC)
Message-Id: <20081110124409.E7CA163B123@mail.netbsd.org>
Date: Mon, 10 Nov 2008 13:43:46 +0100
From: hramrach@centrum.cz
Reply-To: hramrach@centrum.cz
To: gnats-bugs@gnats.NetBSD.org
Subject: xdm does not use shell startup scripts
X-Send-Pr-Version: 3.95

>Number:         39891
>Category:       misc
>Synopsis:       xdm does not use shell startup scripts
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 10 12:45:00 +0000 2008
>Last-Modified:  Thu Jun 18 05:10:02 +0000 2015
>Originator:     hramrach
>Release:        NetBSD 4.99.73
>Organization:
	<organization of PR author (multiple lines)>
>Environment:
	<The following information is extracted from your kernel. Please>
	<append output of "ldd", "ident" where relevant (multiple lines).>
System: NetBSD 4.99.73 NetBSD 4.99.73 (miniMac) #3: Mon Nov 3 15:40:22 CET 2008 root@:/usr/src/sys/arch/i386/compile/miniMac i386
Architecture: i386
Machine: i386
>Description:
	I installed the xdm package from pkgsrc.
	I want my locale to be en_US.UTF-8 so that I can use texts that are written in my native language.
	Where do I set this up, system-wide?

	There is no option in xdm to select language.
	The X session does not read /etc/profile. My shells inside the terminal do but the terminal does not know about utf-8 because the terminal process itself is not started in any sane environment.
	There is no ENV script the X session scripts supplied use, certainly not one that would also be used for terminal logins.
>How-To-Repeat:
	log in through xdm
>Fix:
	Provide and document some way to set up environment for X and shell logins.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->misc-bug-people
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Tue, 11 Nov 2008 13:05:18 +0000
Responsible-Changed-Why:
Not a pkgsrc problem.
Request of document for system-wide locale settings on NetBSD.


From: Christopher Berardi <cberardi@natoufa.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: misc/39891
Date: Fri, 26 Mar 2010 17:23:49 -0400

 I came across this problem as well. I followed the instructions in the NetBSD guide (chapter 9.10 Graphical login with xdm), and all seemed well, but when I started a xterm, my .shrc (sourced from $ENV) was not being read. So, none of my aliases, prompt, etc. was present.

 It turns out, I needed to reference /etc/profile in the Xsession file. Since I followed the instructions of the manual and created a symlink from .xinitrc to .xsession, I placed the following into my $HOME/.xinitrc:



 if [ -f /etc/profile ]; then
     . /etc/profile
 fi

 if [ -f $HOME/.profile ]; then
     . $HOME/.profile
 fi



 And now all is loaded as should be.

 -- 
 Christopher Berardi
 http://www.natoufa.com/

 Be still, and know that I am God (Psalms 46:10)

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/39891: xdm does not use shell startup scripts
Date: Thu, 18 Jun 2015 05:07:02 +0000

 On Mon, Nov 10, 2008 at 12:45:00PM +0000, michal.suchanek@ruk.cuni.cz wrote:
  > 	I installed the xdm package from pkgsrc.
  > 	I want my locale to be en_US.UTF-8 so that I can use texts
  >      that are written in my native language.
  > 	Where do I set this up, system-wide?

 You don't.

 This is a (fairly fundamental) problem with xdm -- I suggest you take
 it upstream, as even if we set up some hacks they wouldn't be
 standard.

 -- 
 David A. Holland
 dholland@netbsd.org

>Unformatted:
 	<Please check that the above is correct for the bug being reported,>
 	<and append source date of snapshot, if applicable (one line).>

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.