#283 bu_vsl_printf doesn't treat "%-*.*s" formats properly

unexpected behavior
closed-fixed
Sean Morrison
5
2011-01-22
2011-01-21
Tom Browder
No

The underlying function, bu_vls_vprintf, doesn't interpret formats with "%-*.*s" properly. It's possible that other problems lurk in vls.c, and a comprehensive test needs to be made for all such bu_vls functions to ensure their output is identical to the equivalent libc functions. The attached test file (with Makefile) demonstrates the problem.

Discussion

  • Tom Browder
    Tom Browder
    2011-01-21

    test file showing the bug

     
    Attachments
  • Tom Browder
    Tom Browder
    2011-01-21

    • milestone: --> unexpected behavior
     
  • Tom Browder
    Tom Browder
    2011-01-21

    adding the Makefile; entering the "Group"

     
  • Tom Browder
    Tom Browder
    2011-01-21

    Makefile for test program

     
    Attachments
  • Tom Browder
    Tom Browder
    2011-01-22

    • status: open --> closed-fixed
     
  • Tom Browder
    Tom Browder
    2011-01-22

    Fixed by Sean at revision 42520. Confirmed by Tom.

     
  • Sean Morrison
    Sean Morrison
    2011-01-22

    • assigned_to: nobody --> brlcad