From 7ff9a6054df749e9e01b218dd36c41eb5d5c7ec8 Mon Sep 17 00:00:00 2001 From: Al Date: Mon, 27 Jul 2015 02:37:20 -0400 Subject: [PATCH] [geodb] trim strings in geodb builder --- src/geodb_builder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/geodb_builder.c b/src/geodb_builder.c index 6124cc19..2d448e78 100644 --- a/src/geodb_builder.c +++ b/src/geodb_builder.c @@ -462,7 +462,7 @@ void import_geonames(geodb_builder_t *self, char *filename) { char id_string[INT32_MAX_STRING_SIZE]; - int normalize_utf8_options = NORMALIZE_STRING_DECOMPOSE | NORMALIZE_STRING_LOWERCASE; + int normalize_utf8_options = NORMALIZE_STRING_DECOMPOSE | NORMALIZE_STRING_LOWERCASE | NORMALIZE_STRING_TRIM; int normalize_latin_options = normalize_utf8_options | NORMALIZE_STRING_LATIN_ASCII; uint32_array *ordered_ids = uint32_array_new();