Gettext function f_ calls Obj.magic on a format string
Bug #1684507 reported by
Stéphane Glondu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
marionnet |
New
|
Undecided
|
Unassigned | ||
ocamlbricks |
New
|
Undecided
|
Unassigned |
Bug Description
Hello,
In Debian, Marionnet is currently broken. A bug has been submitted:
https:/
This is due to the f_ function of Gettext_builder calling Obj.magic on a format string:
Since ocaml 4.02.0, format strings are no longer strings internally, but a more complex datatype based on GADTs. Therefore, f_ now triggers a segmentation fault.
To convert a string to a format string, one has to use Scanf.format_
To post a comment you must log in.
Attached is a patch that fixes the issue.