]> git.lyx.org Git - features.git/commitdiff
* Author.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Fri, 12 Nov 2010 09:41:41 +0000 (09:41 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Fri, 12 Nov 2010 09:41:41 +0000 (09:41 +0000)
- to_ascii is a bad idea if your name contains two umlauts.
  (LyX asserted on my for any document).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36258 a592a061-630c-0410-9148-cb99ea01b6c8

src/Author.cpp

index 91974b9c2efadabdab16e69ba067eccd32719479..08349265009da4d6124626b13e1dede3310f1a70 100644 (file)
@@ -26,7 +26,7 @@ namespace lyx {
 static int computeHash(docstring const & name,
        docstring const & email)
 {
-       string const full_author_string = to_ascii(name + email);
+       string const full_author_string = to_utf8(name + email);
        // Bernstein's hash function
        unsigned int hash = 5381;
        for (unsigned int i = 0; i < full_author_string.length(); ++i)