git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29793
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
OTHER CHANGES
=============
OTHER CHANGES
=============
+2.5.4
+-----
+
+Unix:
+
+- wxPuts() now correctly outputs trailing new line in Unicode build
+
#define wxNEED_UNGETC
#define wxNEED_FPUTS
#define wxNEED_UNGETC
#define wxNEED_FPUTS
#define wxNEED_PUTC
int wxFputs(const wxChar *ch, FILE *stream);
#define wxNEED_PUTC
int wxFputs(const wxChar *ch, FILE *stream);
+ int wxPuts(const wxChar *ws);
int wxPutc(wxChar ch, FILE *stream);
#ifdef __cplusplus
int wxPutc(wxChar ch, FILE *stream);
#ifdef __cplusplus
#endif
#define wxPutchar(wch) wxPutc(wch, stdout)
#endif
#define wxPutchar(wch) wxPutc(wch, stdout)
- #define wxPuts(ws) wxFputs(ws, stdout)
#define wxNEED_PRINTF_CONVERSION
#define wxNEED_WX_STDIO_H
#define wxNEED_PRINTF_CONVERSION
#define wxNEED_WX_STDIO_H
#ifdef HAVE_PUTWS
#define wxPuts putws
#else
#ifdef HAVE_PUTWS
#define wxPuts putws
#else
- #define wxPuts(ws) wxFputs(ws, stdout)
+ #define wxNEED_PUTS
+ int wxPuts(const wxChar *ws)
#endif
/* we need %s to %ls conversion for printf and scanf etc */
#endif
/* we need %s to %ls conversion for printf and scanf etc */
+#ifdef wxNEED_PUTS
+int wxPuts(const wxChar *ws)
+{
+ int rc = wxFputs(ws, stdout);
+ if ( rc != -1 )
+ {
+ if ( wxFputs(L"\n", stdout) == -1 )
+ return -1;
+
+ rc++;
+ }
+
+ return rc;
+}
+#endif // wxNEED_PUTS
+
#ifdef wxNEED_PUTC
int /* not wint_t */ wxPutc(wchar_t wc, FILE *stream)
{
#ifdef wxNEED_PUTC
int /* not wint_t */ wxPutc(wchar_t wc, FILE *stream)
{