diff options
author | Werner Koch <wk@gnupg.org> | 2002-09-11 14:57:57 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2002-09-11 14:57:57 +0200 |
commit | b4bb5fc072b4b0134d130647b7687f06422b1eda (patch) | |
tree | 7fad616d83a80842bf2dcb633d5ab054670ab91a | |
parent | * mk-w32-dist: Convert the character sets on a per language base. (diff) | |
download | gnupg2-1-2-2.tar.xz gnupg2-1-2-2.zip |
* simple-gettext.c: Disable charset mappings. We do it now whenV1-2-2
installing the files.
-rw-r--r-- | util/ChangeLog | 5 | ||||
-rw-r--r-- | util/simple-gettext.c | 19 |
2 files changed, 16 insertions, 8 deletions
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 <wk@gnupg.org> + + * simple-gettext.c: Disable charset mappings. We do it now when + installing the files. + 2002-09-09 Werner Koch <wk@gnupg.org> * 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; } |