X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fpropername.c;h=381a7a72cbafe178f3f81149812f948ed753060c;hb=5b63b76064a130bdaadb1fda7ab50e82896446e1;hp=b3c91aee166faeb345b37a7877d32424e28dd441;hpb=4eda4ba54f3cf29f6b7fe4458e719cd2325be4c4;p=gnulib.git diff --git a/lib/propername.c b/lib/propername.c index b3c91aee1..381a7a72c 100644 --- a/lib/propername.c +++ b/lib/propername.c @@ -1,5 +1,5 @@ /* Localization of proper names. - Copyright (C) 2006-2008 Free Software Foundation, Inc. + Copyright (C) 2006-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -242,7 +242,10 @@ proper_name_utf8 (const char *name_ascii, const char *name_utf8) name_converted_translit != NULL ? name_converted_translit : name_ascii); - if (translation != name_ascii) + /* See whether we have a translation. Some translators have not understood + that they should use the UTF-8 form of the name, if possible. So if the + translator provided a no-op translation, we ignore it. */ + if (strcmp (translation, name_ascii) != 0) { /* See whether the translation contains the original name. */ if (mbsstr_trimmed_wordbounded (translation, name_ascii)