#1807 Fix swprintf/vswprintf when compiled with -ansi switch

WSL
closed
Earnie Boyd
Task
fixed
Feature_in_WSL_4.1
True
2013-09-28
2010-02-21
Jacky Lai
No

Refer to https://sourceforge.net/tracker/index.php?func=detail&aid=2373234&group_id=2435&atid=102435
This patch implements swprintf() and vswprintf() as inline functions when __STRICT_ANSI__ is present

It also handles correct ISO C declarations of swprintf() and vswprintf() in msvcr80.dll
(http://msdn.microsoft.com/en-us/library/ybk95axf%28VS.80%29.aspx)

Related

Issues: #1220
Issues: #1277
Issues: #1295
Issues: #1728
Issues: #2018

Discussion

  • Jacky Lai
    Jacky Lai
    2010-02-24

    I just found out that msvcr80.dll does not export the functions.
    I will post another patch tomorrow

     
  • Jacky Lai
    Jacky Lai
    2010-02-26

     
    Attachments
  • Jacky Lai
    Jacky Lai
    2010-02-26

    A new patch is attached.
    1. The two functions are now implemented as inline functions in stdio.h/wchar.h
    2, msvcr80.dll and msvcr90.dll do not export swprintf() or vswprintf(),
    so do not add them in corresponding def file

     
  • Earnie Boyd
    Earnie Boyd
    2013-02-13

    Ticket moved from /p/mingw/patches/435/

     
  • Earnie Boyd
    Earnie Boyd
    2013-02-13

    • status: open --> pending
    • assigned_to: Earnie Boyd
    • milestone: --> WSL
    • type: --> Task
    • resolution: --> later
    • category: --> Unknown
    • patch_attached: --> True
     
  • Earnie Boyd
    Earnie Boyd
    2013-02-19

    • category: Unknown --> Feature_in_WSL_4.0
     
  • Earnie Boyd
    Earnie Boyd
    2013-02-22

    • labels: --> needs review, needs test
    • category: Feature_in_WSL_4.0 --> Feature_in_WSL_4.1
     
  • Earnie Boyd
    Earnie Boyd
    2013-08-28

    Maybe related [#2018]

     

    Related

    Issues: #2018

  • Earnie Boyd
    Earnie Boyd
    2013-09-28

    • status: pending --> closed
    • Resolution: later --> fixed
     
  • Earnie Boyd
    Earnie Boyd
    2013-09-28

    See [#2018] for details of the fix.

     

    Related

    Issues: #2018