* simple-gettext.c: Disable charset mappings. We do it now when

installing the files.
This commit is contained in:
Werner Koch 2002-09-11 12:57:57 +00:00
parent 0bdb353363
commit b4bb5fc072
2 changed files with 16 additions and 8 deletions

View File

@ -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.

View File

@ -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;
}