]> git.lyx.org Git - lyx.git/blobdiff - src/Encoding.cpp
Routines for calculating numerical labels for BibTeX citations.
[lyx.git] / src / Encoding.cpp
index 6a59fe695c7240bceaaa889261f9577bae961628..2aece9a25c3127b258855ee0fd3938d42b668ce9 100644 (file)
@@ -696,8 +696,14 @@ Encoding const * Encodings::fromLyXName(string const & name) const
 }
 
 
-Encoding const * Encodings::fromLaTeXName(string const & name) const
+Encoding const * Encodings::fromLaTeXName(string const & n) const
 {
+       string name = n;
+       // FIXME: if we have to test for too many of these synonyms,
+       // we should instead extend the format of lib/encodings
+       if (n == "ansinew")
+               name = "cp1252";
+
        // We don't use find_if because it makes copies of the pairs in
        // the map.
        // This linear search is OK since we don't have many encodings.