Problems with Win-1251 Russian encoding in PCManFM

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
Cyril
White ninja
White ninja
Posts: 21
Joined: 04 Nov 2011, 10:11
Location: Ukraine
Contact:

Re: Problems with Win-1251 Russian encoding in PCManFM

Post#16 by Cyril » 10 Nov 2011, 11:22

fanthom wrote: time for switching to ru_RU.UTF-8 :)
Well, I have nothing against UTF-8, but if you're using Windows most of the time and have to carry your files between computers with different operating systems, you have no choice.

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: Problems with Win-1251 Russian encoding in PCManFM

Post#17 by Blaze » 11 Nov 2011, 19:10

I completely agree with Cyril.
Time to back on ru_RU.cp1251 :oops:
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Problems with Win-1251 Russian encoding in PCManFM

Post#18 by fanthom » 11 Nov 2011, 21:39

@Cyril, Blaze
Well, I have nothing against UTF-8, but if you're using Windows most of the time and have to carry your files between computers with different operating systems, you have no choice.
i have done short test: created a file with polish characters in porteus-1.1 rc1 (en_US.UTF-8 was set by default, i have just changed kbd layout to polish) on FAT32 partition and then switched to windows - no problems with displaying this file at all. didn't test on ntfs but i can bet that it's the same.

please check yourself.
Please add [Solved] to your thread title if the solution was found.

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: Problems with Win-1251 Russian encoding in PCManFM

Post#19 by Blaze » 12 Nov 2011, 11:47

fanthom,
1) it for txt's files and it have to do manually :(
2) plus what about mp3 if ID3 tags not in UTF8 charset? :(
3) For X11 i use Micex fonts (Windows CP1251) from this website http://unix1.jinr.ru/~lavr/locale-1251.html
I've done for this module module win-micex.xzm.
What about it? :(
:( :( :(
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Problems with Win-1251 Russian encoding in PCManFM

Post#20 by fanthom » 13 Nov 2011, 03:49

@Blaze
1) it for txt's files and it have to do manually
sorry - i do not understand what you mean, please evaluate.
2) plus what about mp3 if ID3 tags not in UTF8 charset?
you can use GTK based 'easytag' for automatic conversion:
http://repository.slacky.eu/slackware-1 ... tag/2.1.6/
3) For X11 i use Micex fonts (Windows CP1251) from this website http://unix1.jinr.ru/~lavr/locale-1251.html
I've done for this module module win-micex.xzm.
What about it?
every font should be supported under UTF-8 encoding. as you can see on this pic:
http://oi53.tinypic.com/e7kmzp.jpg
UTF-8 can display all files, no matter in which language there were created.
i would pick up a font with large support for characters specific to different languages: polish, czech, thai, arabic, etc...

Cheers
Please add [Solved] to your thread title if the solution was found.

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: Problems with Win-1251 Russian encoding in PCManFM

Post#21 by Blaze » 13 Nov 2011, 08:02

fanthom.

1) sorry for my poor English. I mean in txt files need to set the cp1251 charset manually.
All txt files on my PC save in cp1251 charset.

2) Again it need to do manually - i want that this is done automatically in cp1251 charset :roll:

3) I mean console fonts for X11.
And yes, the name of files in UTF-8 encoding is displayed correctly.
btw in Porteus 1.0 the name of files in cp1251 encoding with my Russian localization is displayed correctly too :)

4) For russian language a more apllication nedd to support the cp1251 encoding.
For example app Kopete (ICQ). Many russian users and my friends use windows (cp1251 encoding) and in Kopete with UTF8 i see squiggles, squares, etc :%)

Cheers
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Problems with Win-1251 Russian encoding in PCManFM

Post#22 by fanthom » 13 Nov 2011, 21:09

@Blaze
no problem - please stay on cp1251 :)
be aware that you will have to use 'iocharset=' (for FAT and ISO9660) and 'lang=' (for ntfs) cheatcodes as default NLS is set to UTF-8 in the kernel config.
updating glibc-i18n package to version from slack-13.37 is also highly recommended.
Please add [Solved] to your thread title if the solution was found.

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: Problems with Win-1251 Russian encoding in PCManFM

Post#23 by Blaze » 15 Nov 2011, 17:57

fanthom, ok.
Now my Russian localization in the cp1251 encoding for Porteus v1.1 RC1 i486 work fine for me (except PCManFM).
link for download Russian localization in the cp1251 encoding for Porteus v1.1 RC1 [i486]
Thanks.

about PCManFM

Code: Select all

Gtk-WARNING **: Failed to set text from markup due to error parsing markup: Error on line 1 char 46: Invalid UTF-8 encoded text in name - not valid '02:21:13 \x88\xfa\x81\xbf\xc0\x96\x88\u0008\xc8[\x8a\u0008\xe8\xeb\x94\u0008X\xfa\x81\xbf\xf4\xef\xad'
I found these information:
https://bugs.gpodder.org/show_bug.cgi?id=1277
http://www.linuxquestions.org/questions ... mo-831830/
https://bugs.launchpad.net/ubuntu/+sour ... bug/741003
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=640248

Regards
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Problems with Win-1251 Russian encoding in PCManFM

Post#24 by fanthom » 15 Nov 2011, 20:58

Thanks Blaze for investigation,

after reading the linked threads i see that the main advice is to switch to UTF-8 :)
Anyway - as per this thread:
https://bugs.launchpad.net/ubuntu/+sour ... bug/741003
try to add 'LC_ALL=C' to /etc/profile.d/lang.sh as from screenshot above i see that it's not set in your config.
i have no other ideas atm.
Please add [Solved] to your thread title if the solution was found.

Post Reply