Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Locales and UTF-8
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
DaGr8Gatzby
n00b
n00b


Joined: 18 Sep 2004
Posts: 40

PostPosted: Wed Jan 04, 2006 4:34 am    Post subject: Locales and UTF-8 Reply with quote

Quick question: How do I really know my system truly UTf-8?

Output of locale:

Code:

LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=en_US.utf8



I have recompiled system and am currently emerging world as I type. Unicode use flag is set. How can I test my system? My USB drive also doesn't want to mount. I am suspecting a UTF-8 and old iso conflict. Any ideas?
Back to top
View user's profile Send private message
e-ipi
Apprentice
Apprentice


Joined: 23 Aug 2005
Posts: 192

PostPosted: Wed Jan 04, 2006 5:37 am    Post subject: Re: Locales and UTF-8 Reply with quote

DaGr8Gatzby wrote:
Quick question: How do I really know my system truly UTf-8?
How can I test my system? My USB drive also doesn't want to mount. I am suspecting a UTF-8 and old iso conflict. Any ideas?


I think you can trust locale.

I kind of doubt that the problem with your USB won't mount because of UTF-8. ASCII is a subset of UTF-8, so I don't see a conflict there. And even if that were a problem, I think you'd just see funny characters. Are you? What happens when you try to mount your drive? And how are you trying to mount it exactly?

I'm not sure what a true Unicode system would be. Applications will be able to use different encodings anyway, and different users could have different setups at different times.
Back to top
View user's profile Send private message
DaGr8Gatzby
n00b
n00b


Joined: 18 Sep 2004
Posts: 40

PostPosted: Wed Jan 04, 2006 5:53 am    Post subject: Reply with quote

I cannot mount sdb1(which is my keychain). here is the output

Code:

Dreamz david # mount /dev/sdb1 /mnt/keychain/
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so


The REALLY WEIRD part is that before, I could mount just fine before I updated my system. Also, the fdiskable node is accessible. if I fdisk /dev/sdb and print out the partition table, this comes up.
Code:

The number of cylinders for this disk is set to 3916.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sdb: 1026 MB, 1026555904 bytes
16 heads, 32 sectors/track, 3916 cylinders
Units = cylinders of 512 * 512 = 262144 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        3916     1002480    e  W95 FAT16 (LBA)


Any ideas?
Back to top
View user's profile Send private message
maxima
Apprentice
Apprentice


Joined: 01 Oct 2004
Posts: 150

PostPosted: Wed Jan 04, 2006 6:31 am    Post subject: Reply with quote

Do you have Codepage 437 under Native Language Support option turned on ?
it's essential for mounting FAT partition
Back to top
View user's profile Send private message
DaGr8Gatzby
n00b
n00b


Joined: 18 Sep 2004
Posts: 40

PostPosted: Wed Jan 04, 2006 6:56 am    Post subject: Reply with quote

That is exactly what I was going to post just now. I think I took off support for nothing BUT Utf-8. I read in the official gentoo doc I need to have support for these locales. I'll recompile my kernel and I will post the results. I'm in the middle of an emerge world. But it's almost done. 8)
Back to top
View user's profile Send private message
DaGr8Gatzby
n00b
n00b


Joined: 18 Sep 2004
Posts: 40

PostPosted: Thu Jan 05, 2006 3:13 am    Post subject: Reply with quote

-After a kernel recompile I noticed that you need iso-8859-1 encodings(Western and Latin) in order to use FAT. I should have read the documentation closer. However, how can I test out if a file is encoded in UTF-8? Most of my files were created before the conversion.

Code:

file -i test-utf8
test-utf8: text/plain; charset=us-ascii


this was in vim, my .vimrc

Code:

set number
colorscheme desert
set shiftwidth=4
set encoding=utf-8 fileencodings=



Confused really....but at least the USB drive works...
Back to top
View user's profile Send private message
e-ipi
Apprentice
Apprentice


Joined: 23 Aug 2005
Posts: 192

PostPosted: Thu Jan 05, 2006 4:16 am    Post subject: Reply with quote

DaGr8Gatzby wrote:
-After a kernel recompile I noticed that you need iso-8859-1 encodings(Western and Latin) in order to use FAT. I should have read the documentation closer. However, how can I test out if a file is encoded in UTF-8? Most of my files were created before the conversion.


Write a file containing several scripts and languages and see if it displays correctly. Unicode is the only practical way to encode something with a bunch of languages in it. Don't worry, no one has to see it. There's nothing to stop you from cutting and pasting, either. If you see all the diacritics and the hangul and Chinese characters, greek letters, and Arabic you put in there, everything is fine. (Keep in mind you'll need a Unicode font to see it)

If you've forgotten all your languages, you can use a test file like this one:

http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt
Back to top
View user's profile Send private message
DaGr8Gatzby
n00b
n00b


Joined: 18 Sep 2004
Posts: 40

PostPosted: Thu Jan 05, 2006 7:54 am    Post subject: Reply with quote

Ok USB drive works nice, and UTF-8 test files come out ok but some scripts come out in blocks...I'm doing a recompile with cjk use flag as well. Do you have to take this step? Does anyone know any good fonts?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
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