LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-27-2015, 04:40 PM   #16
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,048

Rep: Reputation: Disabled
Proposed fix.


Just for fun, the attached patch provides a fix that makes pkgtool more lenient. After applying it, setting an UTF-8 charset doesn't trigger the issue.

Caveat: I didn't time it but it probably slows down pkgtool, as I call sed as many times as there are installed package, instead of only once. Optimizing for speed is left to the reader as an exercise

PS Small tip to track invalid UTF-8 characters:
Code:
iconv -f UTF-8 -t UTF-8 <file> 2>bad
If bad is not empty, <file> is bad.

I did that for /source/kde/slack-desc/* and only kio-mtp is guilty.
Attached Files
File Type: txt pkgtool.patch.txt (753 Bytes, 15 views)

Last edited by Didier Spaier; 11-27-2015 at 05:05 PM. Reason: PS added.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Problems in locale - Using the fallback 'C' locale. xeon123 Linux - General 1 05-09-2012 05:18 PM
[SOLVED] pkgtool problems Damnaged Linux - Newbie 4 06-12-2011 02:18 PM
Problems with instalpkg and pkgtool marine.fran Slackware 21 03-27-2011 08:39 PM
Problems with pkgtool Pratt Slackware 12 08-18-2007 03:47 PM
pkgtool problems and fix jawkins Slackware 10 07-11-2005 07:36 PM

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

All times are GMT -5. The time now is 03:33 AM.

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