LinuxQuestions.org
Visit Jeremy's Blog.
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 05-21-2020, 05:44 AM   #1
kel_en
Member
 
Registered: Jun 2005
Distribution: Slackware, OpenBSD, Debian
Posts: 115

Rep: Reputation: 16
aisleriot and UTF-8


Upgraded my desktop machine to 14.2 from Debian last week. The install went well. Tried to install aisleriot for my favorite solitaire game and that seemed to go OK. I did not see any errors. However, when I try to run the game, I get the following:

"bash-4.3$ /usr/bin/sol"
"Non UTF-8 locale (ISO-8859-1) is not supported!"

Any suggestions on a fix would be welcome.
Thanks, Richard
 
Old 05-21-2020, 06:20 AM   #2
cwizardone
LQ Guru
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib."
Posts: 5,586
Blog Entries: 1

Rep: Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994Reputation: 2994
You might try building it from source on your new Slackware system.

See, http://slackbuilds.org/repository/14...arch=aisleriot

or have you already tried that?
 
Old 05-21-2020, 06:48 AM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,323

Rep: Reputation: Disabled
Or just set LANG to an UTF-8 locale, for instance in /etc/profile.d/lang.sh. It won't hurt. if using en_US, that would be en_US.utf8. Else
Code:
locale -a |grep <your two or three lower case letters language code>'|grep utf 8
will tell you what's available. For instance here::
Code:
didier[~]$ locale -a|grep fr|grep utf8
fr_BE.utf8
fr_CA.utf8
fr_CH.utf8
fr_FR.utf8
fr_LU.utf8
didier[~]$
As I live in France I chose fr_FR.utf8.

Last edited by Didier Spaier; 05-21-2020 at 07:46 AM. Reason: Typo fox.
 
Old 05-21-2020, 07:27 AM   #4
kel_en
Member
 
Registered: Jun 2005
Distribution: Slackware, OpenBSD, Debian
Posts: 115

Original Poster
Rep: Reputation: 16
Thanks for the suggestions.
I did build the slackbuild that cwizardone suggested. I should have mentioned that in my first post. I set the locale to utf8 with the command "$ export LANG=en_US.UTF-8" and that worked. Now, when I start the game it complains of a missing dependency so I will chase down ".org.gnome.Patience.WindowState" and see how to install that.

I thought that the 14.2 installer set the locale to UTF-8 so I misinterpreted that error message to mean that the Aisleriot program was looking for ISO-8859.

Thanks again,
Richard
 
Old 05-21-2020, 08:06 AM   #5
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Brú na Bóinne, IE
Distribution: Slackware, NetBSD
Posts: 1,719

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Just in case you're not aware, there's also pysol at slackbuilds and kpat in kde
 
Old 05-21-2020, 08:31 AM   #6
kel_en
Member
 
Registered: Jun 2005
Distribution: Slackware, OpenBSD, Debian
Posts: 115

Original Poster
Rep: Reputation: 16
Thanks. I was not aware of the pysol or kpat packages.

Clearly, I did something wrong when I built the aisleriot package. I find in /tmp/Sbo/package-aisleriot/usr/share/glib-2.0/schemas the package org.gnome.Patience.WindowState but that package, among others did not get installed to my system. I used the command "#installpkg aisleriot-3.22.9-x86_64-1_SBo.tgz and it did not produce errors. Any ideas?
Thanks, Richard
 
Old 05-21-2020, 10:13 AM   #7
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Brú na Bóinne, IE
Distribution: Slackware, NetBSD
Posts: 1,719

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by kel_en View Post
Thanks. I was not aware of the pysol or kpat packages.

Clearly, I did something wrong when I built the aisleriot package. I find in /tmp/Sbo/package-aisleriot/usr/share/glib-2.0/schemas the package org.gnome.Patience.WindowState but that package, among others did not get installed to my system. I used the command "#installpkg aisleriot-3.22.9-x86_64-1_SBo.tgz and it did not produce errors. Any ideas?
It appears you didn't do anything wrong at all. I've just installed aisleriot using sbopkg and get the following error:

Code:
(sol:31069): GLib-GIO-ERROR **: Settings schema 'org.gnome.Patience.WindowState' is not installed

Trace/breakpoint trap
 
Old 05-21-2020, 10:24 AM   #8
kel_en
Member
 
Registered: Jun 2005
Distribution: Slackware, OpenBSD, Debian
Posts: 115

Original Poster
Rep: Reputation: 16
Thanks for the confirmation. I'm tempted to copy the missing file from /tmp/Sbo/... to /usr/share/... to see what happens.

Later. Nothing happens as suspected. Copying the file is not installing the file.

Last edited by kel_en; 05-21-2020 at 11:24 AM.
 
Old 05-21-2020, 11:39 AM   #9
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,323

Rep: Reputation: Disabled
Type this as root:
Code:
glib-compile-schemas /usr/share/glib-2.0/schemas 2>/dev/null
 
Old 05-21-2020, 12:19 PM   #10
kel_en
Member
 
Registered: Jun 2005
Distribution: Slackware, OpenBSD, Debian
Posts: 115

Original Poster
Rep: Reputation: 16
Thank you Didier. That worked. I tried playing a game and it all works. Thanks again.
Richard
 
  


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] variety and UTF-8 getting mangled files with non utf-8? BW-userx Slackware 3 11-17-2019 04:07 PM
[SOLVED] Aisleriot. cwizardone Slackware 12 06-23-2015 04:29 PM
[SOLVED] AisleRiot patience game Steve W Linux - Software 2 04-04-2014 04:13 AM
Aisleriot Backbone Steve W Linux - Software 1 03-26-2014 09:31 AM
[Enter] in text documents diffrent on Windows and Linux? UTF-8/UTF-16 problem or? brynjarh Linux - General 1 11-24-2004 05:20 AM

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

All times are GMT -5. The time now is 03:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration