Re: Trouble with umlauts in ISO locale

Thomas Wiegner <[email protected]>
Newsgroups gmane.network.slrn.user
Message-ID <[email protected]>
Hi,

* Frank Terbeck ([email protected]) wrote [080107 13:28]:

> I'm building the current SVN version of slrn with the following
> options:

> [snip]
> ./configure --enable-strict-from --enable-mid-cache --enable-spool  \
>             --enable-charmap     --with-ssl         --enable-decode
> [snap]

> Which results in:

> [snip]
> % /usr/local/bin/slrn --version
> slrn pre0.9.9-77
>         * Note: This version is a developer preview.
> S-Lang Library Version: 2.1.3
> Compiled at: Jan  7 2008 13:12:59
> Operating System: Linux

> With this setup, every umlaut is displayed as '?'.
> If I'm starting slrn like this: 'LC_CTYPE=de_DE.UTF-8 slrn' and use
> an utf8-aware terminal like urxvt, the characters are displayed
> correctly.

confirmed here, it is a bug. Normally slrn should detect the locale
via the nl_langinfo() function.  

#v+
#if defined(HAVE_LOCALE_H) && defined(HAVE_LANGINFO_H)
  if (Slrn_Display_Charset == NULL)
    {
       setlocale(LC_ALL, "");
       Slrn_Display_Charset = slrn_safe_strmalloc (nl_langinfo (CODESET));
    }
#endif
#v-

But with slrn 0.9.9 I can't find the HAVE_LANGINFO_H anywhere in the
config.h, it seems it got lost somehow in the configure script.

You could try to add 

#define HAVE_LANGINFO_H 1

to your config.h file after the configure run. 

Or you could try to force slrn to use iso-8859-15 by adding

charset Display  iso-8859-15

Cheers,

 Thomas

-- 
slrn packages for ubuntu: http://www.foory.de/thw/slrn/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.