[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] No greeting is printed when compiled with mingw-w64

From: Sami Kerola
Subject: Re: [BUG] No greeting is printed when compiled with mingw-w64
Date: Tue, 15 Jan 2019 21:57:01 +0000

On Tue, 25 Dec 2018 at 01:47, Matthew Palermo <address@hidden> wrote:
> Hi all,
> I think there is a problem with GNU hello 2.10 when compiled with
> mingw-w64 on Windows. GNU hello will not output any greeting, only a
> newline.
> Specifically, I think the problem is one with the mingw-w64-crt
> implementation of mbsrtowcs. GNU hello assumes, I think correctly,
> that the first invocation of mbsrtowcs doesn't change the greeting_msg
> pointer position. But as seen in the source code of mingw-w64-crt
> (https://github.com/Alexpux/mingw-w64/blob/master/mingw-w64-crt/misc/mbrtowc.c),
> this isn't implemented and the pointer is moved to the end of the
> string as normal. The result is an empty greeting_msg string passed to
> the second mbsrtowcs invocation.
> Clearly the proper solution (If I'm right about this) is to fix the
> problem in mingw-w64-crt. I just wanted to submit this as a learning
> process, hopefully get some feedback and just chat. I'm not very
> practiced in C development, only just enough to do minor debugging and
> hacking.

Hi Matthew

Perhaps newer gnulib has fix to your problem. When I look cheer volume
of change since hello 2.10 compared to now there is are quite a lot

gnulib $ git log --oneline
| wc -l

How about if I'll do a GNU hello release sometime within a week or
few. Could you then revalidate if the this is still a problem.

Sami Kerola

reply via email to

[Prev in Thread] Current Thread [Next in Thread]