πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Lewis Sat, 14 Jul 2012 02:55
slrn and UTF-8
#250777
Author: Lewis
Date: Sat, 14 Jul 2012 02:55
33 lines
2563 bytes
$ slrn --version
slrn pre1.0.0-18
	* Note: This version is a developer preview.
S-Lang Library Version: 2.2.4
Compiled at: Jul  8 2012 08:48:33
Operating System: Darwin

COMPILE TIME OPTIONS:
 Backends: +nntp -slrnpull -spool
 External programs / libs: -canlock -inews +ssl -uudeview +iconv
 Features: +decoding +emphasized_text +end_of_thread +fake_refs +gen_msgid
    -grouplens -msgid_cache +piping +rnlock +spoilers -strict_from
 Using 64 bit integers for article numbers.

DEFAULTS:
 Default server object:     nntp
 Default posting mechanism: nntp

(This was compiled out of macports as slrn-devel)

When I am reading any posts with utf-8 characters they are not displayed
correctly. In the subject line, I will see something like ?<80><94> and
in the body of the message I will just see ??? for any UTF-8 character.
SO I will see things like ???I don???t.??? instead of β€œI donβ€˜t.”

I am using Terminal.app which is set to UTF-8 encoding, and utf-8
characters appear correctly in Terminal.app outside of slrn and also in
BBEdit when I am replying to posts.

How do I get slrn to display the utf-8 characters?

--
I WILL NOT EXPOSE THE IGNORANCE OF THE FACULTY Bart chalkboard Ep. 8F15
Re: slrn and UTF-8
#250776
Author: Lewis
Date: Sat, 14 Jul 2012 04:11
63 lines
3781 bytes
In message <slrnk01nsq.1cl8.g.kreme@mbp55.local>
  Lewis <g.kreme@gmail.com.dontsendmecopies> wrote:
> $ slrn --version
> slrn pre1.0.0-18
> 	* Note: This version is a developer preview.
> S-Lang Library Version: 2.2.4
> Compiled at: Jul  8 2012 08:48:33
> Operating System: Darwin

> COMPILE TIME OPTIONS:
>  Backends: +nntp -slrnpull -spool
>  External programs / libs: -canlock -inews +ssl -uudeview +iconv
>  Features: +decoding +emphasized_text +end_of_thread +fake_refs +gen_msgid
>     -grouplens -msgid_cache +piping +rnlock +spoilers -strict_from
>  Using 64 bit integers for article numbers.

> DEFAULTS:
>  Default server object:     nntp
>  Default posting mechanism: nntp

> (This was compiled out of macports as slrn-devel)

> When I am reading any posts with utf-8 characters they are not displayed
> correctly. In the subject line, I will see something like ?<80><94> and
> in the body of the message I will just see ??? for any UTF-8 character.
> SO I will see things like ???I don???t.??? instead of β€œI donβ€˜t.”

> I am using Terminal.app which is set to UTF-8 encoding, and utf-8
> characters appear correctly in Terminal.app outside of slrn and also in
> BBEdit when I am replying to posts.

> How do I get slrn to display the utf-8 characters?

A little more info:

$ locale
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="C"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=

$ port list installed
bzip2                          @1.0.6          archivers/bzip2
gperf                          @3.0.4          devel/gperf
libedit                        @20120601-3.0   devel/libedit
libiconv                       @1.14           textproc/libiconv
libpng                         @1.4.12         graphics/libpng
ncftp                          @3.2.5          net/ncftp
ncurses                        @5.9            devel/ncurses
openssl                        @1.0.1c         devel/openssl
pcre                           @8.30           devel/pcre
slang2                         @2.2.4          lang/slang2
slrn-devel                     @1.0.0pre18     news/slrn-devel
zlib                           @1.2.7          archivers/zlib


--
'I like the sound of that,' said Mrs Palm.  'I like the echoes,' said Dr
Downey.
Re: slrn and UTF-8
#250778
Author: Robert Grimm
Date: Sat, 14 Jul 2012 06:12
27 lines
1815 bytes
Lewis <g.kreme@gmail.com.dontsendmecopies> wrote:
> A little more info:

> $ locale
> LANG="en_US.UTF-8"
> LC_COLLATE="en_US.UTF-8"
> LC_CTYPE="C"
           ^^^
> LC_MESSAGES="en_US.UTF-8"
> LC_MONETARY="en_US.UTF-8"
> LC_NUMERIC="en_US.UTF-8"
> LC_TIME="en_US.UTF-8"
> LC_ALL=

Try to set this to a utf-8 locale.

,----[ man 1posix locale ]
|  LC_CTYPE
|         Determine  the  locale  for  the  interpretation of sequences of
|         bytes of text data as characters (for  example,  single-byte  as
|         opposed to multi-byte characters in arguments and input files).
`----

Rob
-- 
For every problem there is one solution which is simple, neat, and wrong.
                -- H. L. Mencken
Re: slrn and UTF-8
#250779
Author: Lewis
Date: Sat, 14 Jul 2012 06:38
46 lines
3036 bytes
In message <88f7d9xu0r.ln2@news.lan.robgri.de>
  Robert Grimm <spam@robgri.de> wrote:
> Lewis <g.kreme@gmail.com.dontsendmecopies> wrote:
>> A little more info:

>> $ locale
>> LANG="en_US.UTF-8"
>> LC_COLLATE="en_US.UTF-8"
>> LC_CTYPE="C"
>            ^^^
>> LC_MESSAGES="en_US.UTF-8"
>> LC_MONETARY="en_US.UTF-8"
>> LC_NUMERIC="en_US.UTF-8"
>> LC_TIME="en_US.UTF-8"
>> LC_ALL=

> Try to set this to a utf-8 locale.

OK, do you have any idea where it is set by default or can I just
declare it "UTF-8" in my .bashrc and be safe?


> ,----[ man 1posix locale ]
>|  LC_CTYPE
>|         Determine  the  locale  for  the  interpretation of sequences of
>|         bytes of text data as characters (for  example,  single-byte  as
>|         opposed to multi-byte characters in arguments and input files).
> `----

my man 1 localedef says:

Determine the locale for the interpretation of sequences of bytes of
text data as characters (for example, single- as opposed to multi-byte
characters in arguments and input files).  This variable has no effect
on the processing of localedef input data; the POSIX locale is used for
this purpose, regardless of the value of this variable.

Ah, interesting, LC_CTYPE is specifically set in my .bashrc. I don't
remember doing that, though the file does date, in part, from last
century. I will unset it for nowa nd see if that solves everything.

--
When we woke up that morning we had no way of knowing that in a matter
of hours we'd changed the way we were going. Where would I be now? Where
would I be now if we'd never met? Would I be singing this song to
someone else instead?
Re: slrn and UTF-8
#250780
Author: Lewis
Date: Sat, 14 Jul 2012 06:42
18 lines
2110 bytes
> In message <88f7d9xu0r.ln2@news.lan.robgri.de>
>   Robert Grimm <spam@robgri.de> wrote:

>>> LC_CTYPE="C"
>>            ^^^

>> Try to set this to a utf-8 locale.

Thank you! just quit slrn, commented out the spurious line in my bashrc,
source it, and relaunched slrn and all is right with the world. Well,
no, not really, but as far as utf-8 in slrn goes.

Lesson to other readers: give lots of info. I'm sure if I hadn't
followed up with the locale info I would never have gotten this solved.

--
'You know me,' said Rincewind. 'Just when I'm getting a grip on
something Fate comes along and jumps on my fingers.' --Interesting Times
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads