|
From: Ethan A M. <eam...@gm...> - 2015-03-24 03:52:18
|
On Tuesday, 24 March 2015 09:40:04 AM Tatsuro MATSUOKA wrote: > Hello > > I have opened two ticket items. > > Improve utf-8 treatment in interactive session on gnuplot for windows > > http://sourceforge.net/p/gnuplot/feature-requests/415/ > > > pause -1 message is not correct for gnuplot.exe built by MinGW > > http://sourceforge.net/p/gnuplot/bugs/1580/ > > > If you have time I am happy for the commit the above. Are you sure that this patch is OK? It always prings an extra "\n" because the commands following "if (buf)" are not inside { } brackets. Was that intended? %%%%% --- a/src/command.c 2015-02-16 01:39:20.000000000 +0900 +++ b/src/command.c 2015-03-23 13:18:41.546081300 +0900 @@ -1465,7 +1465,8 @@ # if defined(WGP_CONSOLE) && defined(USE_MOUSE) if (!paused_for_mouse || !MousableWindowOpened()) { int junk = 0; - if (buf) fprintf(stderr, "%s\n", buf); + /* Use fputs instead of fprintf("%s\n",buf) to avoid error in Message of Japanese Characters in MinGW Compiler*/ + if (buf) fputs(buf, stderr);fputs("\n", stderr); /* cannot use EAT_INPUT_WITH here */ do { junk = getch(); %%%%% Ethan |