Mistake of opening of a file having a name in cp1251.

Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Apr 3 04:57:20 PDT 2015


On 4/3/15 2:26 AM, MGW wrote:
> Greetings to all!
>
> I work on Windows with cp1251 and I have a mistake in the program:
>
> import std.stdio;
> int main (string [] args) {
>      string nameFile = `«Ёлки с объектами №876».txt`;
>      File f = File (nameFile, "w");
>      f.writeln ("Greetings!");
>      return 0;
> }

Please see if this will fix your problem, currently open PR: 
https://github.com/D-Programming-Language/phobos/pull/3138

Seems like the same issue

-Steve



More information about the Digitalmars-d-learn mailing list