🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #192431

Re: slrn and accented characters

#192431
From: Christian Wolf
Date: Wed, 08 Nov 2006 22:18
74 lines
3004 bytes
On 2006-11-05, Peter J Ross <pjr@kookbusters.org> wrote:

> However, the following ought to work in (K/X)Ubuntu 6.10 ...

It's working!!! Great job! Thanks a lot.
I'm a newbie with slrn and I like its features, but the way it 
was encoding the German characters was really getting on my nerves.

I'm using the Ubuntu upgrade Edgy Eft 6.1 (Gnome)
and everything is fine now.

>
>
> 1. If necessary, generate the required locale, as previously
> suggested. E.g.,
>
> #v+
> $ sudo locale-gen en_US.ISO-8859-15
> #v-

I generated it like this:

#v+
$ sudo localedef -i de_DE@euro -f ISO-8859-15 de_DE.ISO-8859-15
$ sudo dpkg-reconfigure -p low locales
$ echo $LANG de_DE.ISO-8859-15
$ echo $LC_ALL de_DE.ISO-8859-15
#v-

All the rest from your advice:

> Install luit:
>
> #v+
> $ sudo apt-get install luit
> #v-
>
> #v+
> $ sudo ln -sv /usr/share/X11/locale/locale.alias /usr/lib/X11/locale/locale.alias 
> #v-
>
> 
> #v+
> $ LANG=en_US.ISO-8859-15 luit -encoding ISO-8859-15 sh -c "sleep 1; slrn"
> #v-
>
> Check that everything's OK, and that the locale returns to UTF-8 after
> exiting slrn. (If you get an "unable to set locale" error, return to
> step 1 and check that the locale you've specified is installed.)
>
> ... create an alias to save typing or searching the
> history:
>
> #v+
> $ echo "alias slrnx='LANG=en_US.ISO-8859-15 luit -encoding ISO-8859-15 sh -c \"sleep 1; slrn\"'" >> ~/.bashrc
> #v-
>
>
> Open a new terminal or tab and check that the alias works:
>
> #v+
> $ slrnx
> #v-
>

In the end I had to change also the encoding of gedit called by slrn in the
slrn.rc-file with:

#v+
set editor_command "gedit --encoding=ISO-8859-15 '%s' &"
#v-

Ciao
 Chris
Technical Details
Message-ID: <eitl36$7tt$1@tamarack.fernuni-hagen.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!keepthis.news.telefonica.de!telefonica.de!news-fra1.dfn.de!news-koe1.dfn.de!tamarack.fernuni-hagen.de!news.fernuni-hagen.de!not-for-mail
References: <HPx0h.9$Sl5.0@newsfe05.lga> <slrnekct0a.5hh.pjr@nntp.alcatroll.com> <ccgi14xrp5.ln2@news.gates-of-hell.com> <slrnekfmu6.5bd.pjr@nntp.alcatroll.com> <vk9l14xe67.ln2@news.gates-of-hell.com> <slrneks7i3.cjc.pjr@nntp.alcatroll.com>

Show Full Headers
Complete Article Headers
Message-ID: <eitl36$7tt$1@tamarack.fernuni-hagen.de>
Subject: Re: slrn and accented characters
Date: Wed, 08 Nov 2006 22:18:15 +0000
From: Christian Wolf <chriskalf@online.de>
References: <HPx0h.9$Sl5.0@newsfe05.lga> <slrnekct0a.5hh.pjr@nntp.alcatroll.com> <ccgi14xrp5.ln2@news.gates-of-hell.com> <slrnekfmu6.5bd.pjr@nntp.alcatroll.com> <vk9l14xe67.ln2@news.gates-of-hell.com> <slrneks7i3.cjc.pjr@nntp.alcatroll.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!keepthis.news.telefonica.de!telefonica.de!news-fra1.dfn.de!news-koe1.dfn.de!tamarack.fernuni-hagen.de!news.fernuni-hagen.de!not-for-mail
Newsgroups: news.software.readers
Organization: Open University Hagen
Lines: 74
NNTP-Posting-Host: bonsai.fernuni-hagen.de
X-Trace: tamarack.fernuni-hagen.de 1163024295 8125 132.176.114.21 (8 Nov 2006
X-Complaints-To: newsadmin@fernuni-hagen.de
NNTP-Posting-Date: Wed, 8 Nov 2006 22:18:15 +0000 (UTC)
User-Agent: slrn/0.9.8.1pl1 (Debian)