LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-13-2017, 04:30 AM   #1
sbolokanov
Member
 
Registered: Feb 2013
Location: Бдинъ, Бѫлгариѧ
Distribution: GNU/Linux
Posts: 104

Rep: Reputation: 27
Report: Slackpkg tools non-latin alphabet problem


Since some time Slackware (-current) started preparing for going unicode (or I'm wrong?).



I do like to report that when one tries to say install a package with a path containing non-latin symbols (or at least that happens with cyrillic) the following happens:


Code:
root@sevar:~# installpkg /home/sbolokanov/Изтегляния/wine-staging-2.18-x86_64-1sg.txz 
rev: stdin: Invalid or incomplete multibyte or wide character
Cannot install /home/sbolokanov/Изтегляния/wine-staging-2.18-x86_64-1sg.txz:  external compression utility  missing
 
Old 10-13-2017, 05:19 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Simon, what happens if you comment the lines 65 and 66 in /sbin/installpkg, like this:
# LANG=C
# export LANG
You will most probably also need to replace line 62:
unset LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY \
removing LANG so it becomes:
unset LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY \

That's what we do in Slint but honestly I didn't try yet paths including multi-byte encoded characters, so I'm interested to know the outcome.

PS Maybe you could just comment out all lines from 62 through 66 as un-setting LC_ALL and LC_CTYPE can hurt too.

Last edited by Didier Spaier; 10-13-2017 at 01:39 PM.
 
1 members found this post helpful.
Old 10-14-2017, 07:43 AM   #3
sbolokanov
Member
 
Registered: Feb 2013
Location: Бдинъ, Бѫлгариѧ
Distribution: GNU/Linux
Posts: 104

Original Poster
Rep: Reputation: 27
Quote:
Originally Posted by Didier Spaier View Post
Simon, what happens if you comment the lines 65 and 66 in /sbin/installpkg, like this:
# LANG=C
# export LANG
You will most probably also need to replace line 62:
unset LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY \
removing LANG so it becomes:
unset LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY \

That's what we do in Slint but honestly I didn't try yet paths including multi-byte encoded characters, so I'm interested to know the outcome.

PS Maybe you could just comment out all lines from 62 through 66 as un-setting LC_ALL and LC_CTYPE can hurt too.

I commented out all of them and it actually worked.

Thanks Didier!

Last edited by sbolokanov; 10-14-2017 at 07:45 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Battery status tools report >100% remaining hollywoodb Linux - Laptop and Netbook 0 06-22-2009 03:30 PM
Weather report tools tuxedup Linux - Desktop 6 03-14-2008 03:57 PM
Fonts: phonetic alphabet letters problem tramni1980 Slackware 1 08-19-2006 05:33 AM
Why do Web addresses and files always use latin alphabet? General General 1 07-04-2006 11:25 AM
FOSS translation tools? English to Spanish, Spanish to Latin, Latin to Icelandic, etc brynjarh Linux - Software 0 06-19-2006 12:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration