Fix:Core:Don't do any conversion if the map is already in utf-8
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Fri, 15 Feb 2008 11:05:48 +0000 (11:05 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Fri, 15 Feb 2008 11:05:48 +0000 (11:05 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@872 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/src/map.c

index bb27241..a5198df 100644 (file)
@@ -76,7 +76,7 @@ map_set_active(struct map *this_, int active)
 int
 map_requires_conversion(struct map *this_)
 {
-       return (this_->meth.charset != NULL);   
+       return (this_->meth.charset != NULL && strcmp(this_->meth.charset, "utf-8"));
 }
 
 char *