Xfce Forum

Sub domains
 

You are not logged in.

#1 2012-04-02 03:23:05

jotawski
Member
Registered: 2012-04-02
Posts: 9

[Solved] mousepad default locale for saving

Hi,

I am using mousepad since it is quite easy and simple enough for me.  On saving a new file, I need to specify UTF-8 for a locale since mousepad set this value as ASCII and produce error if I do not change from this value.

Is there some way to set the default locale as UTF-8, for example, in saving file ?

And here is the environment of my machine:-
[mni] ~% uname -a
FreeBSD mni.jes.in.th 9.0-STABLE FreeBSD 9.0-STABLE #4: Wed Mar 28 09:07:52 ICT 2012     root@mni.jes.in.th:/kaitag/obj/usr/src/sys/JOTAWSKI  amd64


English is not my native language; please excuse typing errors.

Regards,
jotawski

Offline

#2 2012-04-05 07:58:09

paolo321
Member
Registered: 2011-06-26
Posts: 121

Re: [Solved] mousepad default locale for saving

I use leafpad, not mousepad, but anyway it uses by default UTF-8 since my locale is en_US.UTF-8 ...
What's your locale ?

Offline

#3 2012-04-07 08:14:12

jotawski
Member
Registered: 2012-04-02
Posts: 9

Re: [Solved] mousepad default locale for saving

Hi,

Thank you so much for your time,  I do not set for any particular locale.  Most of the time, I use English alphabet for writing program so that UTF-8 should be fine but that is not true.

Do I have to explicitly set locale too ?

Regards,
jotawski

Offline

#4 2012-04-07 10:14:03

paolo321
Member
Registered: 2011-06-26
Posts: 121

Re: [Solved] mousepad default locale for saving

you are using a locale even if you have not explicitly chosen one :-)
Maybe your locale defaults to ascii charset...

On my system (xubuntu) I can see locale with

locale

or simpler

echo $LANG

Tried googling this issue, and it seems related to locale as I supposed, for example see https://bbs.archlinux.org/viewtopic.php?id=58015 ...
Anyway, where to set system-wide and user locale may vary. I see you're using freebsd, so maybe things are different :-)

Last edited by paolo321 (2012-04-07 10:21:01)

Offline

#5 2012-04-08 02:30:40

jotawski
Member
Registered: 2012-04-02
Posts: 9

Re: [Solved] mousepad default locale for saving

Hi,

you are right, I am using it already and here are some of values which I wonder if mousepad will have a look for or not

# echo $LANG
C
# locale
LANG=C
LC_CTYPE="C"
LC_COLLATE="C"
LC_TIME="C"
LC_NUMERIC="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=

once again, many thanks for your times and I will have a look at your provided links.

Regards,
jotawski

Offline

#6 2012-04-08 20:00:02

paolo321
Member
Registered: 2011-06-26
Posts: 121

Re: [Solved] mousepad default locale for saving

C locale is something like a "default fallback locale" , that's why mousepad uses ascii ...

If you set LANG to en_US.UTF-8 it probably will work correctly; you can test it running mousepad from a shell where you have manually set LANG that way!

If this works, please mark thread as solved to help people googling this issue :-)

Offline

#7 2012-04-10 03:53:44

jotawski
Member
Registered: 2012-04-02
Posts: 9

Re: [Solved] mousepad default locale for saving

Hi,

Oh yes, that works fine.

Once more time, thank you very much indeed.

Regards,
jotawski

Offline

Board footer

Powered by FluxBB