How to set a different charset in initrd.gz?

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
walter leonardo
Posts: 234
Joined: Thu 10 Dec 2009, 22:10

How to set a different charset in initrd.gz?

#1 Post by walter leonardo »

I need to start with puppy linux utf-8 characters for Spanish users.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#2 Post by musher0 »

Hello, Walter.

I think that no utf8 character set, in any language, is available at the start of the Puppy CD.

The best you can do at that point is to specify, at the command line:

Code: Select all

puppy pkeys=es


(Aside from what you wish to insert with pfix=ram, etc.
There is a list of available languages if you press F2.)

After the Puppy boot-up process, once you get into X, then you can choose various more "refined" character sets, for many languages, and also ask for the "utf8" addition.

I hope this helps.
Sincerely,
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#3 Post by technosaurus »

L18L has set this up already.
http://www.murga-linux.com/puppy/viewto ... 774#604774
And Barry did something else.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

How to set a different charset in initrd.gz?

#4 Post by L18L »

technosaurus wrote:...And Barry did something else.
:
Take any recent official puppy (wary, racy, slacko, precise)
install vicmz`s langpack_es 20120905.pet
save, reboot and

charset is utf-8
language is spanish

The trick was loading a consolefont. that can display some (not all, of course) utf8.

Or did you mean something more special?

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#5 Post by Argolance »

Hello,
Another way to ask the question: How to get UTF-8 on by default, not at boot while modifying something inside the initrd.gz, but directly at startup inside the Puppy sfs file?
Thank you.

Cordialement.

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#6 Post by Argolance »

Hello,
If this could help, looking in the file: /etc/profile (racy 5.3) at lines 97-102:

Code: Select all

#this line gets edited by chooselocale script...
# w004 going back to non-utf8... 101120 back to utf8... 101121 off again...
#110409 change .utf8 to .UTF-8 ...
#LANG=en_US.UTF-8
LANG=en_US
export LANG 
Comment, uncomment...
(Thanks to CatDude!)

Cordialement.

Post Reply