Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004799OCamlOCaml generalpublic2009-05-19 22:122016-03-24 14:54
Reportertill 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version3.11.0 
Target Version4.03.0+dev / +beta1Fixed in Version 
Summary0004799: Printf ignores width on %b %c %a %% (and maybe other)
Description# Printf.sprintf "%5c" 'c';;
- : string = "c"

Seems tricky and not worth it for %a
Tagsjunior_job
Attached Files

- Relationships
related to 0005949resolvedgasche [patch] Weak format checking 

-  Notes
(0008090)
doligez (administrator)
2012-09-17 14:09

We should document this properly without changing the code.
(0012221)
doligez (administrator)
2014-09-28 00:23
edited on: 2014-09-28 00:25

This will be fixed in 4.03 either by declaring such formats invalid or by implementing the padding (probably the former).

(0015595)
doligez (administrator)
2016-03-24 14:54

On 4.03, give the option -strict-formats to the compiler and it signals an error on these formats.

- Issue History
Date Modified Username Field Change
2009-05-19 22:12 till New Issue
2009-05-20 14:10 doligez Status new => acknowledged
2012-07-11 14:48 doligez Target Version => 4.01.0+dev
2012-07-11 14:48 doligez Description Updated View Revisions
2012-07-31 13:36 doligez Target Version 4.01.0+dev => 4.00.1+dev
2012-09-17 14:09 doligez Note Added: 0008090
2012-09-17 14:09 doligez Target Version 4.00.1+dev => 4.01.0+dev
2013-08-02 15:59 doligez Target Version 4.01.0+dev => 4.02.0+dev
2013-08-19 16:08 doligez Relationship added related to 0005949
2014-07-30 23:20 doligez Target Version 4.02.0+dev => 4.02.1+dev
2014-07-30 23:20 doligez Tag Attached: junior_job
2014-09-04 00:25 doligez Target Version 4.02.1+dev => undecided
2014-09-26 17:34 doligez Target Version undecided => 4.02.1+dev
2014-09-28 00:23 doligez Note Added: 0012221
2014-09-28 00:25 doligez Note Edited: 0012221 View Revisions
2014-09-28 00:25 doligez Target Version 4.02.1+dev => 4.03.0+dev / +beta1
2016-03-24 14:54 doligez Note Added: 0015595
2016-03-24 14:54 doligez Status acknowledged => resolved
2016-03-24 14:54 doligez Resolution open => fixed


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker