LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 01-04-2005, 05:06 AM   #1
nkshirsagar
LQ Newbie
 
Registered: Nov 2004
Posts: 20

Rep: Reputation: 0
LANG/ LC_ALL variables on Suse not set.. code segfaults


Hi,

the getdefaultcodepage() in icu library segfaults when lang or lc_all is not set. The os is SLE 9 ..


the setlocale(LC_ALL,"") call does NOT return NULL.. it returns..
LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=C;LC_COLLATE=C;LC_MONETARY=C;LC_MESSA GES=C;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENT IFICATION=C LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=C;LC_COLLATE=C;LC_MONETARY=C;LC_MESSA

The env variables lang or lc_all are not set..

ANy idea why the segfault occurs and how to prevent it? i dont want to force any particular locale or even the 'C' locale onto the user..

-Nikhil.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
locale: Cannot Set LC_ALL to default locale: No such file or directory. asym Linux - General 8 05-22-2012 02:54 AM
Cannot set LD_LIBRARY_PATH in .cshrc (able to set other env variables) senthilpr_in Linux - Newbie 4 02-26-2007 12:46 PM
LANG not set, hangs iconv_getDefaultCodepage() nkshirsagar Linux - Software 0 11-18-2004 04:12 AM
Any Ideas as to why SimCity3000 segfaults in SuSE 9.1??? JaseP Linux - Games 2 06-14-2004 01:11 AM
how to set enviroment variables RedHat123 Linux - Newbie 1 07-16-2002 10:48 PM


All times are GMT -5. The time now is 12:09 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration