mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-07 17:33:02 +01:00
* simple-gettext.c: Disable charset mappings. We do it now when
installing the files.
This commit is contained in:
parent
0bdb353363
commit
b4bb5fc072
@ -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>
|
2002-09-09 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
* w32reg.c (read_w32_registry_string): Handle REG_EXPAND_SZ.
|
* w32reg.c (read_w32_registry_string): Handle REG_EXPAND_SZ.
|
||||||
|
@ -85,7 +85,7 @@ struct loaded_domain
|
|||||||
char *data;
|
char *data;
|
||||||
int must_swap;
|
int must_swap;
|
||||||
u32 nstrings;
|
u32 nstrings;
|
||||||
char *mapped;
|
/* char *mapped; */
|
||||||
struct string_desc *orig_tab;
|
struct string_desc *orig_tab;
|
||||||
struct string_desc *trans_tab;
|
struct string_desc *trans_tab;
|
||||||
u32 hash_size;
|
u32 hash_size;
|
||||||
@ -211,12 +211,12 @@ load_domain( const char *filename )
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* allocate an array to keep track of code page mappings */
|
/* allocate an array to keep track of code page mappings */
|
||||||
domain->mapped = calloc( 1, domain->nstrings );
|
/* domain->mapped = calloc( 1, domain->nstrings ); */
|
||||||
if( !domain->mapped ) {
|
/* if( !domain->mapped ) { */
|
||||||
free( data );
|
/* free( data ); */
|
||||||
free( domain );
|
/* free( domain ); */
|
||||||
return NULL;
|
/* return NULL; */
|
||||||
}
|
/* } */
|
||||||
|
|
||||||
return domain;
|
return domain;
|
||||||
}
|
}
|
||||||
@ -273,7 +273,7 @@ set_gettext_file( const char *filename )
|
|||||||
|
|
||||||
if( the_domain ) {
|
if( the_domain ) {
|
||||||
free( the_domain->data );
|
free( the_domain->data );
|
||||||
free( the_domain->mapped );
|
/* free( the_domain->mapped ); */
|
||||||
free( the_domain );
|
free( the_domain );
|
||||||
the_domain = NULL;
|
the_domain = NULL;
|
||||||
}
|
}
|
||||||
@ -287,6 +287,8 @@ get_string( struct loaded_domain *domain, u32 idx )
|
|||||||
{
|
{
|
||||||
char *p = domain->data + SWAPIT(domain->must_swap,
|
char *p = domain->data + SWAPIT(domain->must_swap,
|
||||||
domain->trans_tab[idx].offset);
|
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] ) {
|
if( !domain->mapped[idx] ) {
|
||||||
byte *pp;
|
byte *pp;
|
||||||
|
|
||||||
@ -398,6 +400,7 @@ get_string( struct loaded_domain *domain, u32 idx )
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#endif /* unused code */
|
||||||
return (const char*)p;
|
return (const char*)p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user