]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
Remove special code for CJK that is no longer required (amends e665715fc4).
[lyx.git] / src / Buffer.cpp
index 06d3eaf1d93f8e8495dab1880ada1577f2c1e07c..a7e5d5ec215d02f6ae9689ec327878898915ca1f 100644 (file)
@@ -812,10 +812,9 @@ FileName Buffer::Impl::exportFileName() const
        if (branch_suffix.empty())
                return filename;
 
-       string const name = filename.onlyFileNameWithoutExt()
-               + to_utf8(branch_suffix);
+       string const name = addExtension(filename.onlyFileNameWithoutExt()
+                       + to_utf8(branch_suffix), filename.extension());
        FileName res(filename.onlyPath().absFileName() + "/" + name);
-       res.changeExtension(filename.extension());
 
        return res;
 }
@@ -4530,7 +4529,7 @@ Buffer::ExportStatus Buffer::doExport(string const & target, bool put_in_tempdir
                        bformat(_("The directory path to the document\n%1$s\n"
                            "contains spaces, but your TeX installation does "
                            "not allow them. You should save the file to a directory "
-                                       "whose name does not contain spaces."), from_ascii(filePath())));
+                                       "whose name does not contain spaces."), from_utf8(filePath())));
                return ExportTexPathHasSpaces;
        } else {
                runparams.nice = false;
@@ -4791,8 +4790,8 @@ Buffer::ReadStatus Buffer::loadEmergency()
                        if (noname) {
                                Alert::warning(_("Can't rename emergency file!"),
                                        _("LyX was unable to rename the emergency file. "
-                                         "You should do so manually. Otherwise, you will be"
-                                         "asked about it again the next time you try to load"
+                                         "You should do so manually. Otherwise, you will be "
+                                         "asked about it again the next time you try to load "
                                          "this file, and may over-write your own work."));
                        }
                }