Peter Kümmel wrote:
lyxerr << "LyX: Creating directory %1$s" << endl,
        lyxerr << package().user_support().absFilename() << endl;
        docstring s1 = _("LyX: Creating directory %1$s");
        docstring s2 = from_utf8(package().user_support().absFilename());

        //docstring s3 = bformat(_("LyX directory, %1$s. \n"), "/home/dir/");

Peter, OK, all tests succeeded up to this point, but

        docstring s4= bformat(_("LyX directory, %1$s. \n"), 
from_utf8("/home/dir/"));

fails (and all the rest).

In this test, after the evaluation of from_utf8() part, it jumps to

        docstring const _(string const & str)

in gettext.cpp (L34) and this function returns a value and successfully finishes. Then, it goes to

  docstring bformat<docstring>(docstring const & fmt, docstring arg1)

and crashes when it evaluates the "return" line (L875 in lstrings.cpp).

Koji

Reply via email to