Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 20 Sep 2014, 20:17
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Question about gettext! [SOLVED]
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 3 [38 Posts]   Goto page: Previous 1, 2, 3
Author Message
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Sun 29 Jan 2012, 06:47    Post subject: gettext with and without utf8
Subject description: bugfix for chooselocale
 

L18L wrote:
I have been playing with retrovol with and without utf8 in latest slacko.

1st problem was:
Could not change to my locale without utf8
...

Started with utf8

# locale -a
C
de_DE.utf8
en_US
POSIX
#
----------------
chooselocale: choose de_DE without utf8

# locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory

C
de_DE.utf8
en_US
en_US.utf8
POSIX
#

----------------
Bugfix in /usr/sbin/chooselocale:
#120129 enabling adding locale without utf8 using regexp. L18L

#if [ "`locale -a | grep "${LANGCHOICE}${UTF8}"`" = "" ];then
if [ "`locale -a | grep -E "${LANGCHOICE}${UTF8}$"`" = "" ];then #120129
----------------

chooselocale: choose de_DE without utf8

# locale -a
C
de_DE
de_DE.utf8
en_US
en_US.utf8
POSIX
#
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1826
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sun 29 Jan 2012, 08:02    Post subject:  

Hello L18L,
Quote:
#120129 enabling adding locale without utf8 using regexp. L18L

#if [ "`locale -a | grep "${LANGCHOICE}${UTF8}"`" = "" ];then
if [ "`locale -a | grep -E "${LANGCHOICE}${UTF8}$"`" = "" ];then #120129
If I well undertood, this has to be copied into /usr/sbin/chooselocale? And this instead of all the different "solutions" called above? But where?

... And what about the commented line? What is it used for? then... then what?
Sorry to ask so many questions...

Thank you!

_________________

Back to top
View user's profile Send private message Visit poster's website 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Sun 29 Jan 2012, 08:24    Post subject: bugfix for chooselocale  

Hello Argolance,

yes, edit /usr/sbin/chooselocale
find the line
Code:
if [ "`locale -a | grep "${LANGCHOICE}${UTF8}"`" = "" ];then

it is something like 147 and replace it by:
Code:
if [ "`locale -a | grep -E "${LANGCHOICE}${UTF8}$"`" = "" ];then


No, this is just a bugfix which enables you now to choose for example fr_FR if you have started using fr_FR.UTF-8

The other issue was to have OUTPUT_CHARSET=UTF-8 permanent.
Put
Code:
export OUTPUT_CHARSET=UTF-8
into /root/.xinitrc

Cordialment Smile
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1826
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sun 29 Jan 2012, 09:36    Post subject:  

Thank you a lot: now, all is just and perfect indeed!

Herzlich! Wink Very Happy

_________________

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 3 of 3 [38 Posts]   Goto page: Previous 1, 2, 3
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0496s ][ Queries: 12 (0.0039s) ][ GZIP on ]