I think this is a correct D2 program: import std.stdio: File; void main() { auto f = File("test.txt", "w"); f.writef("%c", 'x'); } But DMD dmd 2.048 gives at runtime: std.format.FormatError: std.format integral
According to the std.format documentation, "%c" is not a valid format specifier. The error message could be improved, though.
The program runs fine on 2.059, and the text file is created with 'x' inside.
"%c" format specifier has been supported from 2.058: http://dlang.org/phobos/std_format It was fixed by the pull request: https://github.com/D-Programming-Language/phobos/pull/298