Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printf.sprintf compile-time error #3509

Closed
vicuna opened this issue Mar 3, 2005 · 2 comments
Closed

Printf.sprintf compile-time error #3509

vicuna opened this issue Mar 3, 2005 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Mar 3, 2005

Original bug ID: 3509
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: frédéric BESSON
Version: 3.09+dev16 (2005-02-16)
OS: MacOS X
Submission from: zarquon.irisa.fr (131.254.10.195)

Bonjour,

The compilation of the following code
let _ = Printf.sprintf " %;"
is raising the exception
Fatal error: exception Invalid_argument("String.sub")

PS: Version 3.08.2 complains about a bad format

--
Frédéric

@vicuna
Copy link
Author

vicuna commented Mar 4, 2005

Comment author: administrator

Full_Name: frédéric BESSON
Version: 3.09+dev16 (2005-02-16)
OS: MacOS X
Submission from: zarquon.irisa.fr (131.254.10.195)

Bonjour,

The compilation of the following code
let _ = Printf.sprintf " %;"
is raising the exception
Fatal error: exception Invalid_argument("String.sub")

PS: Version 3.08.2 complains about a bad format

--
Frédéric

Thank you for the well spotted bug report. It is now corrected in the
current working sources:

    Objective Caml version 3.09+dev17 (2005-03-04)

Printf.sprintf " %;";;

Bad conversion %;, at char number 1 in format string `` %;''

--
Pierre Weis

INRIA, Projet Cristal, http://pauillac.inria.fr/~weis

@vicuna
Copy link
Author

vicuna commented Mar 7, 2005

Comment author: administrator

fixed PW 2005-03-04

@vicuna vicuna closed this as completed Mar 7, 2005
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant