#363 Fix fwide() implementation

closed-accepted
2008-04-25
2008-04-25
Danny Smith
No

The function fwide always fails on mingw (mea culpa). It shouldn't, because (1) wide streams are supported and (2) fwide doesn't need to do anything to allow support.

gcc/libstdc++-v3/testsuite/27_io/wchar)t/9662.cc exposes the bug.

This fixes.

2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>

\* include/wchar.h \(fwide\): Return success code rather than failure
in inline definition,
\* mingwex/fwide.c \(fwide\): ANSI-fy. Get rid of Q8 comments.
Return success code rather than failure.

Discussion

  • Danny Smith
    Danny Smith
    2008-04-25

    Patch

     
    Attachments
  • Danny Smith
    Danny Smith
    2008-04-25

    • assigned_to: nobody --> ir0nh34d
     
  • Logged In: YES
    user_id=570619
    Originator: NO

    Applied in my local source, will commit to CVS later today.

     
    • status: open --> closed-accepted