mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Ensure main calls bindtextdomain
This commit is contained in:
parent
a22cd7394b
commit
3b502901c0
@ -1,3 +1,7 @@
|
|||||||
|
2014-06-11 Giuseppe Scrivano <gscrivan@redhat.com>
|
||||||
|
|
||||||
|
* util/trunc.c (main): Ensure bindtextdomain is called.
|
||||||
|
|
||||||
2014-06-10 Giuseppe Scrivano <gscrivan@redhat.com>
|
2014-06-10 Giuseppe Scrivano <gscrivan@redhat.com>
|
||||||
|
|
||||||
* build-aux/build_info.pl: Remove trailing whitespaces.
|
* build-aux/build_info.pl: Remove trailing whitespaces.
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
2014-06-11 Giuseppe Scrivano <gscrivan@redhat.com>
|
||||||
|
|
||||||
|
* decc_ver.c (main): Ensure bindtextdomain is called.
|
||||||
|
* hash.c (main): Likewise.
|
||||||
|
* html-parse.c: Likewise.
|
||||||
|
* netrc.c: Likewise.
|
||||||
|
* test.c: Likewise.
|
||||||
|
* trunc.c: Likewise.
|
||||||
|
|
||||||
2014-06-10 Giuseppe Scrivano <gscrivan@redhat.com>
|
2014-06-10 Giuseppe Scrivano <gscrivan@redhat.com>
|
||||||
|
|
||||||
* wget.h: Remove trailing whitespaces.
|
* wget.h: Remove trailing whitespaces.
|
||||||
|
@ -2,6 +2,15 @@
|
|||||||
|
|
||||||
int main( void)
|
int main( void)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#ifdef ENABLE_NLS
|
||||||
|
/* Set the current locale. */
|
||||||
|
setlocale (LC_ALL, "");
|
||||||
|
/* Set the text message domain. */
|
||||||
|
bindtextdomain ("wget", LOCALEDIR);
|
||||||
|
textdomain ("wget");
|
||||||
|
#endif /* ENABLE_NLS */
|
||||||
|
|
||||||
#ifdef __VMS_VERSION
|
#ifdef __VMS_VERSION
|
||||||
printf( " __VMS_VERSION: >%s<.\n", __VMS_VERSION);
|
printf( " __VMS_VERSION: >%s<.\n", __VMS_VERSION);
|
||||||
#else /* def __VMS_VERSION */
|
#else /* def __VMS_VERSION */
|
||||||
|
@ -767,6 +767,15 @@ main (void)
|
|||||||
{
|
{
|
||||||
struct hash_table *ht = make_string_hash_table (0);
|
struct hash_table *ht = make_string_hash_table (0);
|
||||||
char line[80];
|
char line[80];
|
||||||
|
|
||||||
|
#ifdef ENABLE_NLS
|
||||||
|
/* Set the current locale. */
|
||||||
|
setlocale (LC_ALL, "");
|
||||||
|
/* Set the text message domain. */
|
||||||
|
bindtextdomain ("wget", LOCALEDIR);
|
||||||
|
textdomain ("wget");
|
||||||
|
#endif /* ENABLE_NLS */
|
||||||
|
|
||||||
while ((fgets (line, sizeof (line), stdin)))
|
while ((fgets (line, sizeof (line), stdin)))
|
||||||
{
|
{
|
||||||
int len = strlen (line);
|
int len = strlen (line);
|
||||||
|
@ -1189,6 +1189,14 @@ int main ()
|
|||||||
int read_count;
|
int read_count;
|
||||||
int tag_counter = 0;
|
int tag_counter = 0;
|
||||||
|
|
||||||
|
#ifdef ENABLE_NLS
|
||||||
|
/* Set the current locale. */
|
||||||
|
setlocale (LC_ALL, "");
|
||||||
|
/* Set the text message domain. */
|
||||||
|
bindtextdomain ("wget", LOCALEDIR);
|
||||||
|
textdomain ("wget");
|
||||||
|
#endif /* ENABLE_NLS */
|
||||||
|
|
||||||
while ((read_count = fread (x + length, 1, size - length, stdin)))
|
while ((read_count = fread (x + length, 1, size - length, stdin)))
|
||||||
{
|
{
|
||||||
length += read_count;
|
length += read_count;
|
||||||
|
@ -455,6 +455,14 @@ main (int argc, char **argv)
|
|||||||
file = argv[1];
|
file = argv[1];
|
||||||
target = argv[2];
|
target = argv[2];
|
||||||
|
|
||||||
|
#ifdef ENABLE_NLS
|
||||||
|
/* Set the current locale. */
|
||||||
|
setlocale (LC_ALL, "");
|
||||||
|
/* Set the text message domain. */
|
||||||
|
bindtextdomain ("wget", LOCALEDIR);
|
||||||
|
textdomain ("wget");
|
||||||
|
#endif /* ENABLE_NLS */
|
||||||
|
|
||||||
if (stat (file, &sb))
|
if (stat (file, &sb))
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("%s: cannot stat %s: %s\n"), argv[0], file,
|
fprintf (stderr, _("%s: cannot stat %s: %s\n"), argv[0], file,
|
||||||
|
@ -75,6 +75,14 @@ main (int argc _GL_UNUSED, char *argv[])
|
|||||||
{
|
{
|
||||||
const char *result;
|
const char *result;
|
||||||
|
|
||||||
|
#ifdef ENABLE_NLS
|
||||||
|
/* Set the current locale. */
|
||||||
|
setlocale (LC_ALL, "");
|
||||||
|
/* Set the text message domain. */
|
||||||
|
bindtextdomain ("wget", LOCALEDIR);
|
||||||
|
textdomain ("wget");
|
||||||
|
#endif /* ENABLE_NLS */
|
||||||
|
|
||||||
program_name = argv[0];
|
program_name = argv[0];
|
||||||
|
|
||||||
result = all_tests();
|
result = all_tests();
|
||||||
|
@ -76,6 +76,14 @@ main (int argc, char *argv[])
|
|||||||
int option;
|
int option;
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
|
#ifdef ENABLE_NLS
|
||||||
|
/* Set the current locale. */
|
||||||
|
setlocale (LC_ALL, "");
|
||||||
|
/* Set the text message domain. */
|
||||||
|
bindtextdomain ("wget", LOCALEDIR);
|
||||||
|
textdomain ("wget");
|
||||||
|
#endif /* ENABLE_NLS */
|
||||||
|
|
||||||
/* Parse options. */
|
/* Parse options. */
|
||||||
while ((option = getopt (argc, argv, "c")) != -1)
|
while ((option = getopt (argc, argv, "c")) != -1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user