[haiku-3rdparty-dev] Re: utf-8 to wide-char failing

  • From: Pete Goodeve <pete.goodeve@xxxxxxxxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Thu, 27 Sep 2012 23:36:34 -0700

On Thu, Sep 27, 2012 at 10:51:11PM -0700, scottmc wrote:
> > The mail program I use ("mutt") is annoyingly replacing all UTF-8 codes
> > in received mail with backslashed octal.  I've tracked this down to the
> > mbrtowc call in its pager, which returns an error every time it hits UTF-8
> > (and the pager substitutes the octal).
> >
> 
> Pete,
> Can you open a trac ticket on HaikuPorts for Mutt, so that we get it
> rebuilt for Haiku?
Heh... do you think anyone but me would want to use it? (:-))
[Actually, maybe yes -- It's a very convenient curses-based mail app,
and great for me as I have it on all my systems, with no finger-conflicts.]
I don't think much patching was needed for Haiku.  It's actually from the
BeOS version, but I also have the original tar (don't think it's been
updated in ten years) so getting a diff should be easy.  There are
some tricky bits, though.  It needs a 'sendmail', so I just have a tiny ruby
equivalent of that, and the.muttrc file needed a bit of setting up.

 I'll see what I can do (though I want to concentrate on this damn HDA problem 
on my laptop).

> Which build of Haiku are you using?  I'm trying to get everything out
> of /boot/common/share and r1alpha4 should have it mostly cleaned out
> now.
I think it happens on all the builds I have.  I'll double check, but I'm pretty
sure I saw it on the laptop running a fairly current build, as well as the
tower still running r44242 (where I've been working).

If things are being moved out of /boot/common/share, where *should*
the locale files be?

> I seem to recall running into some issue with mbrtowc when rebuilding
> the OptionalPackages.  It might have been that one didn't detect
> something during configure, I forget what it was now, but after seeing
> your email recalled having seen something that wasn't right with
> mbrtowc.  It might have been the 'less' issue
> (https://dev.haiku-os.org/ticket/8993) or something else.  I should
> have made a note of it at the time.  If you find figure out whats up
> let us know as it may affect other things.  Maybe I ran into a warning
> sayintg the it was already defined but the definitions didn't match?

Ahh, that's helpful.  I guess I'd better look at the wchar source. Maybe
it *is* buggy.  (Don't see any compiler warnings, though.)

[I'm assuming everybody who might have some knowledge reads this list
as well as haiku_dev?  If not, maybe I'd better crosspost.]

Thanks,
        -- Pete --

Other related posts: