Re: Cannot render Spanish accents in builtin pager

2015-06-02 Thread Xu Wang
On Tue, Jun 2, 2015 at 2:57 AM,   wrote:
> On 01Jun15 20:06 -0400, Xu Wang wrote:
>> I cannot seem to configure mutt such that the builtin pager renders
>> accents.
>>
>> "Todavía" is shown as "TodavM-CM--a"
>> "También" is shown as "TambiM-CM-)n"
>
> Did you compile mutt yourself?
> I had similar issues and solved this when building against libncursesw5
> instead of libncurses5 (note the w for wide, which is utf support afaik)
>
> And of course the locale command shows:
> """
> % locale
> LANG=en_US.UTF-8
> LANGUAGE=en_US:en
> LC_CTYPE="en_US.UTF-8"
> LC_NUMERIC="en_US.UTF-8"
> LC_TIME="en_US.UTF-8"
> LC_COLLATE="en_US.UTF-8"
> LC_MONETARY="en_US.UTF-8"
> LC_MESSAGES="en_US.UTF-8"
> LC_PAPER="en_US.UTF-8"
> LC_NAME="en_US.UTF-8"
> LC_ADDRESS="en_US.UTF-8"
> LC_TELEPHONE="en_US.UTF-8"
> LC_MEASUREMENT="en_US.UTF-8"
> LC_IDENTIFICATION="en_US.UTF-8"
> LC_ALL=
> """
>
> Cheers,
>
> --
> Bastian

Dear Bastian,

This worked. Thank you so much for your help with this. All I had to
do was install libncursesw5-dev and reconfigure mutt and it worked. I
did not have to chance any configure flag.

I originally read this:
http://dev.mutt.org/trac/wiki/MuttFaq/Charset
which was helpful (although not very structured), and it mentions
something about about ncurses with wide char support, but I did not
try it because it is listed under
"UTF-8 chars are displayed fine, but the screen is garbled"
which I don't think described my problem. Also, I did not need to
specify "--enable-widec".

Please let me know if an update is needed to that page and I will make
an account and attempt a change. However, since I do not know anything
about this topic deeply I am hesitant to do anything without further
confirmation.

Kind Regards,

Xu


Re: Cannot render Spanish accents in builtin pager

2015-06-02 Thread bastian-muttuser
On 02Jun15 08:44 -0400, Xu Wang wrote:
> This worked. Thank you so much for your help with this. All I had to
> do was install libncursesw5-dev and reconfigure mutt and it worked. I
> did not have to chance any configure flag.

I am happy to hear that.
My understanding is that the configure script checks first for ncurses
and afterwards for ncursesw. Thus, it will prefer the use of ncursesw
over ncurses.

> I originally read this:
> http://dev.mutt.org/trac/wiki/MuttFaq/Charset
> which was helpful (although not very structured), and it mentions
> something about about ncurses with wide char support, but I did not
> try it because it is listed under
> "UTF-8 chars are displayed fine, but the screen is garbled"
> which I don't think described my problem. Also, I did not need to
> specify "--enable-widec".

That configure switch is not available in my branch.

> Please let me know if an update is needed to that page and I will make
> an account and attempt a change. However, since I do not know anything
> about this topic deeply I am hesitant to do anything without further
> confirmation.

I guess the wiki page is worth updating, with noting the version of
mutt. But, I am just a simple mutt user, so I don't feel to en- or even
discourage you doing so ;-)

Cheers,
-- 
Bastian


Re: Cannot render Spanish accents in builtin pager

2015-06-02 Thread JaviMicro
* On  2 jun 2015, bastian-muttu...@t6l.de wrote:

>
> I am happy to hear that.
> My understanding is that the configure script checks first for ncurses
> and afterwards for ncursesw. Thus, it will prefer the use of ncursesw
> over ncurses.
> 

True. See:
http://dev.mutt.org/hg/mutt/file/70b85d8b232b/configure.ac#l271
and check how occurrence of "ncursesw" has precedence over "ncurses"


A simple:
ldd /usr/bin/mutt
gives which ncurses* library is used by mutt binary.