SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to set my locale correctly! But pkgtool in mode view, not displaying correctly
My Slackware is 64 Current with update today. full installer. There is nothing else installed
My file /etc/profile.d/lang.sh:
Code:
export LANG=en_US.UTF-8 #This line is causing the problem if I just put export LANG=en_US works, but UTF-8 does not work properly
export LC_COLLATE=C
The content of this line:
kiriki: kiriki (yahtzee-like dice game for KDE)
is what you should see on the right in the third line of the screen instead of an empty space.
Did you do the update of pkgtools dated of yesterday (pkgtools-14.2-noarch-4.txz)?
PS But I just upgraded pktools myself and can't reproduce your issue...
Last edited by Didier Spaier; 11-26-2015 at 03:19 PM.
The content of this line:
kiriki: kiriki (yahtzee-like dice game for KDE)
is what you should see on the right in the third line of the screen instead of an empty space.
Did you do the update of pkgtools dated of yesterday (pkgtools-14.2-noarch-4.txz)?
PS But I just upgraded pktools myself and can't reproduce your issue...
Yes my pkgtool is updated. What I noticed is that the problem seems to be in line lang.sh that if I change export LANG=en_US.UTF-8 by export LANG=en_US works but unconfigures UTF-8.
Or lack some other setting out these 2 files. Remembering that the stable version only this setting works.
Code:
bash-4.3# grep -A1 DESCRIPTION /var/log/packages/kiriki*
PACKAGE DESCRIPTION:
kiriki: kiriki (yahtzee-like dice game for KDE)
bash-4.3# ls /var/log/packages/pkgtools*
/var/log/packages/pkgtools-14.2-noarch-4
bash-4.3#
kio-mtp: kio-mtp (Provides KIO Access to MTP devices)
kio-mtp:
kio-mtp: Provides KIO Access to MTP devices using the mtp:/// protocol.
kio-mtp: MTP stands for Media Transfer Protocol<94> It is required in order to
kio-mtp: access and manage files on devices running Android 4.0 and later.
kio-mtp:
kio-mtp:
kio-mtp: Kio-mtp has been developed by Philipp Schmidt.
kio-mtp:
kio-mtp:
kio-mtp:
Removing or replacing the <94> character makes kio-mtp reappear in pkgtool and fixes the blank descriptions.
It's caused by an invalid UTF-8 sequence in the kio-mtp description. I have the same problem with my locale set to en_GB.UTF-8. Removing or replacing the <94> character makes kio-mtp reappear in pkgtool and fixes the blank descriptions.
Yes the problem is himself. Since removed the kio and pkgtool returned to normal. I tried installing the KIO stable version that works, but it does not work in the Current. And I did not understand how, where and what file I can edit the description of the KIO to correct the problem
kio-mtp: kio-mtp (Provides KIO Access to MTP devices)
kio-mtp:
kio-mtp: Provides KIO Access to MTP devices using the mtp:/// protocol.
kio-mtp: MTP stands for Media Transfer Protocol<94> It is required in order to
kio-mtp: access and manage files on devices running Android 4.0 and later.
kio-mtp:
kio-mtp:
kio-mtp: Kio-mtp has been developed by Philipp Schmidt.
kio-mtp:
kio-mtp:
kio-mtp:
Removing or replacing the <94> character makes kio-mtp reappear in pkgtool and fixes the blank descriptions.
Now I get it. Edited the description of it and the problem was solved! Congratulations and thank you for the help!
I emailed alienBoB to request the fix in /source/kde/slackdesc/kio-mtp.
PS The reason I couldn't reproduce is that I am running 14.1. I should have realized that...
In the long term it could be a good idea to see why this character confuses pkgtool. That would be the real fix IMHO as U+0094 aka CCH aka CANCEL CHARACTER is a control character but not an invalid UTF-8 sequence. I will try to understand what happens.
Last edited by Didier Spaier; 11-26-2015 at 10:50 PM.
In the long term it could be a good idea to see why this character confuses pkgtool. That would be the real fix IMHO as U+0094 aka CCH aka CANCEL CHARACTER is a control character but not an invalid UTF-8 sequence. I will try to understand what happens.
I think you're confusing codepoints with encodings/byte sequences. In UTF-8 the U+0094 codepoint is represented by the byte sequence C2 94.
I think you're confusing codepoints with encodings/byte sequences. In UTF-8 the U+0094 codepoint is represented by the byte sequence C2 94.
Err, no. I have checked this information against the current version of the Unicode Character Database, page 57 in document 4th-10646-01-0000-4DFF.pdf.
This is easy to check. In a text editor like geany, press together Ctrl+Shift+u, release these keys, then type 0094 (actually 94 is enough), press Enter and you will see CCH displayed in reverse video as when you display /source/kde/slackdesc/kio-mtp or /var/log/packages/kio-mtp-2063e75_20131020git-x86_64-2 in the same editor.
PS I always mention the hexadecimal position of the character in the register to avoid any ambiguity.
Last edited by Didier Spaier; 11-27-2015 at 04:59 PM.
Reason: PS added.
But if you use "hexdump -C", you will see that actually the character shown in slack-desc is encoded with the two bytes sequence c2 94, so it is valid.
The kio-mtp slack-desc from two different mirrors doesn't have the c2. And there are no issues with pkgtool using a UTF-8 locale if the sequence is c2 94.
Ah, OK, I stand corrected. Anyway this issue has been reported, so let's wait for a fix in the ChangeLog.
I think that my confusion comes from the fact that the slack-desc is encoded in ISO-8859-1, whereas I have set the default encoding of new files that I edit in geany as UTF-8 (and at first I checked a new file with hexdump).
Last edited by Didier Spaier; 11-27-2015 at 09:10 AM.
Reason: Typo fix.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.