hi, 1.Insert->File->Plain Text 2.Cancel in Dialog 3. Error: Reading not UTF-8 encoded file ---------------------------------------- The file is not UTF-8 encoded. It will be read as local 8Bit-encoded. If this does not give the correct result then please change the encoding of the file to UTF-8 with a program other than LyX.
the following patch fixes it for me. ok to commit ? pavel
diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 8df0e32..b7bc12a 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -2022,10 +2022,10 @@ docstring BufferView::contentsOfPlaintextFile(string const & f, if (result.first == FileDialog::Later) return docstring(); - fname = makeAbsPath(to_utf8(result.second)); - - if (fname.empty()) + if (result.second.empty()) return docstring(); + + fname = makeAbsPath(to_utf8(result.second)); } if (!fname.isReadable()) {