diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-11-27 11:13:47 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-11-27 11:13:47 +0000 |
commit | 927f10bb34e325686239332f34979baf638590c9 (patch) | |
tree | aa0f52e1df7b3f3a2dc3cc159499fd59cedfa449 /navit | |
parent | ff2a6f850412a2639340a8dc92ce3676ecac2970 (diff) | |
download | navit-927f10bb34e325686239332f34979baf638590c9.tar.gz |
Fix:maptool:Convert character set
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2807 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit')
-rw-r--r-- | navit/maptool/misc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/navit/maptool/misc.c b/navit/maptool/misc.c index 22ba9745d..ad11177df 100644 --- a/navit/maptool/misc.c +++ b/navit/maptool/misc.c @@ -109,7 +109,12 @@ phase1_map(struct map *map, FILE *out_ways, FILE *out_nodes) item_bin_init(item_bin, item->type); item_bin_add_coord(item_bin, ca, count); while (item_attr_get(item, attr_any, &attr)) { - item_bin_add_attr(item_bin, &attr); + if (attr.type >= attr_type_string_begin && attr.type <= attr_type_string_end) { + attr.u.str=map_convert_string(map, attr.u.str); + item_bin_add_attr(item_bin, &attr); + map_convert_free(attr.u.str); + } else + item_bin_add_attr(item_bin, &attr); } if (item->type >= type_line) item_bin_write(item_bin, out_ways); |