diff --git a/util/ChangeLog b/util/ChangeLog index add000357..88c7eb105 100644 --- a/util/ChangeLog +++ b/util/ChangeLog @@ -1,3 +1,8 @@ +2002-09-11 Werner Koch + + * simple-gettext.c: Disable charset mappings. We do it now when + installing the files. + 2002-09-09 Werner Koch * w32reg.c (read_w32_registry_string): Handle REG_EXPAND_SZ. diff --git a/util/simple-gettext.c b/util/simple-gettext.c index d9c676f50..b5ee446cb 100644 --- a/util/simple-gettext.c +++ b/util/simple-gettext.c @@ -85,7 +85,7 @@ struct loaded_domain char *data; int must_swap; u32 nstrings; - char *mapped; +/* char *mapped; */ struct string_desc *orig_tab; struct string_desc *trans_tab; u32 hash_size; @@ -211,12 +211,12 @@ load_domain( const char *filename ) } /* allocate an array to keep track of code page mappings */ - domain->mapped = calloc( 1, domain->nstrings ); - if( !domain->mapped ) { - free( data ); - free( domain ); - return NULL; - } +/* domain->mapped = calloc( 1, domain->nstrings ); */ +/* if( !domain->mapped ) { */ +/* free( data ); */ +/* free( domain ); */ +/* return NULL; */ +/* } */ return domain; } @@ -273,7 +273,7 @@ set_gettext_file( const char *filename ) if( the_domain ) { free( the_domain->data ); - free( the_domain->mapped ); +/* free( the_domain->mapped ); */ free( the_domain ); the_domain = NULL; } @@ -287,6 +287,8 @@ get_string( struct loaded_domain *domain, u32 idx ) { char *p = domain->data + SWAPIT(domain->must_swap, domain->trans_tab[idx].offset); +#if 0 /* Mapping is not used any more. Instead we convert the files when + Creating the binary distribution. */ if( !domain->mapped[idx] ) { byte *pp; @@ -398,6 +400,7 @@ get_string( struct loaded_domain *domain, u32 idx ) } } +#endif /* unused code */ return (const char*)p; }