- string const error = strerror(errno);
- string const file = makeDisplayPath(fname, 50);
- string const text = bformat(_("Could not read the specified document\n"
- "%1$s\ndue to the error: %2$s"), file, error);
+ docstring const error = lyx::from_ascii(strerror(errno));
+ docstring const file = makeDisplayPath(fname, 50);
+ docstring const text = bformat(_("Could not read the specified document\n"
+ "%1$s\ndue to the error: %2$s"), file, error);