You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks again for the bug report and the patch. I did a big cleaning in the code to get rid of the bug, as well as suppress irrelevant differences between Printf and Format codes for function mk_printf.
I will add your example to the test suite for the module Format.
Original bug ID: 5121
Reporter: khooyp
Assigned to: @pierreweis
Status: closed (set by @xavierleroy on 2015-12-11T18:18:45Z)
Resolution: fixed
Priority: high
Severity: minor
Version: 3.11.2
Target version: 4.00.2+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @sliquister @hcarty
Bug description
Comparing the Printf module vs. the Format module:
Printf.printf "111 %(%d%) 222%!" "%d" 3;;
111 3 222- : unit = ()
Format.printf "111 %(%d%) 222%!" "%d" 3;;
111 - : unit =
This seems to happen if %( %) encloses any format specifier.
File attachments
The text was updated successfully, but these errors were encountered: