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 Tue 21 Oct 2014, 12:47
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 Posts_count   Goto page: Previous 1, 2, 3
Author Message
L18L

Joined: 19 Jun 2010
Posts: 2525
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Sun 29 Jan 2012, 06:47    Post_subject: gettext with and without utf8
Sub_title: 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: 1835
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_website 
L18L

Joined: 19 Jun 2010
Posts: 2525
Location: Moved from Hosla to www.eussenheim.de

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: 1835
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_website 
Display_posts:   Sort by:   
Page 3 of 3 Posts_count   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:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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