Call __ctype_init in early glibc startup.
This adds the bits missing from fd5bdc0924e0cfd1688b632068c1b26f3b0c88da.
This commit is contained in:
parent
d1635ef80f
commit
228c019e63
@ -1,3 +1,11 @@
|
|||||||
|
2012-04-02 Thomas Schwinge <thomas@codesourcery.com>
|
||||||
|
|
||||||
|
* csu/init-first.c (__libc_init_first): Call __ctype_init.
|
||||||
|
* sysdeps/i386/init-first.c (init): Likewise.
|
||||||
|
* sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
|
||||||
|
* sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
|
||||||
|
* sysdeps/sh/init-first.c (init): Likewise.
|
||||||
|
|
||||||
2012-04-01 Ulrich Drepper <drepper@gmail.com>
|
2012-04-01 Ulrich Drepper <drepper@gmail.com>
|
||||||
|
|
||||||
* po/ru.po: Update from translation team.
|
* po/ru.po: Update from translation team.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Initialization code run first thing by the ELF startup code. Stub version.
|
/* Initialization code run first thing by the ELF startup code. Stub version.
|
||||||
Copyright (C) 1995, 1997, 1998, 2001, 2002 Free Software Foundation, Inc.
|
Copyright (C) 1995-2012 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -16,6 +16,7 @@
|
|||||||
License along with the GNU C Library; if not, see
|
License along with the GNU C Library; if not, see
|
||||||
<http://www.gnu.org/licenses/>. */
|
<http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#include <ctype.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
@ -55,4 +56,7 @@ void __libc_init_first
|
|||||||
/* This is a hack to make the special getopt in GNU libc working. */
|
/* This is a hack to make the special getopt in GNU libc working. */
|
||||||
__getopt_clean_environment (envp);
|
__getopt_clean_environment (envp);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Initialize ctype data. */
|
||||||
|
__ctype_init ();
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Initialization code run first thing by the ELF startup code. For i386/Unix.
|
/* Initialization code run first thing by the ELF startup code. For i386/Unix.
|
||||||
Copyright (C) 1995,1996,1997,2000,2001,2002 Free Software Foundation, Inc.
|
Copyright (C) 1995-2012 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -16,6 +16,7 @@
|
|||||||
License along with the GNU C Library; if not, see
|
License along with the GNU C Library; if not, see
|
||||||
<http://www.gnu.org/licenses/>. */
|
<http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#include <ctype.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
extern void __libc_init (int, char **, char **);
|
extern void __libc_init (int, char **, char **);
|
||||||
@ -40,6 +41,9 @@ init (int *data)
|
|||||||
/* This is a hack to make the special getopt in GNU libc working. */
|
/* This is a hack to make the special getopt in GNU libc working. */
|
||||||
__getopt_clean_environment (envp);
|
__getopt_clean_environment (envp);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Initialize ctype data. */
|
||||||
|
__ctype_init ();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SHARED
|
#ifdef SHARED
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
/* Initialization code run first thing by the ELF startup code. For i386/Hurd.
|
/* Initialization code run first thing by the ELF startup code. For i386/Hurd.
|
||||||
Copyright (C) 1995,96,97,98,99,2000,01,02,03,04,05
|
Copyright (C) 1995-2012 Free Software Foundation, Inc.
|
||||||
Free Software Foundation, Inc.
|
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -18,6 +17,7 @@
|
|||||||
<http://www.gnu.org/licenses/>. */
|
<http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <ctype.h>
|
||||||
#include <hurd.h>
|
#include <hurd.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@ -91,6 +91,9 @@ posixland_init (int argc, char **argv, char **envp)
|
|||||||
__getopt_clean_environment (envp);
|
__getopt_clean_environment (envp);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Initialize ctype data. */
|
||||||
|
__ctype_init ();
|
||||||
|
|
||||||
#if defined SHARED && !defined NO_CTORS_DTORS_SECTIONS
|
#if defined SHARED && !defined NO_CTORS_DTORS_SECTIONS
|
||||||
__libc_global_ctors ();
|
__libc_global_ctors ();
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Initialization code run first thing by the ELF startup code. PowerPC/Hurd.
|
/* Initialization code run first thing by the ELF startup code. PowerPC/Hurd.
|
||||||
Copyright (C) 1995-2001, 2002, 2003 Free Software Foundation, Inc.
|
Copyright (C) 1995-2012 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -17,6 +17,7 @@
|
|||||||
<http://www.gnu.org/licenses/>. */
|
<http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <ctype.h>
|
||||||
#include <hurd.h>
|
#include <hurd.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@ -81,6 +82,9 @@ posixland_init (int argc, char **argv, char **envp)
|
|||||||
__getopt_clean_environment (__environ);
|
__getopt_clean_environment (__environ);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Initialize ctype data. */
|
||||||
|
__ctype_init ();
|
||||||
|
|
||||||
#if defined SHARED && !defined NO_CTORS_DTORS_SECTIONS
|
#if defined SHARED && !defined NO_CTORS_DTORS_SECTIONS
|
||||||
__libc_global_ctors ();
|
__libc_global_ctors ();
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Initialization code run first thing by the ELF startup code. For SH.
|
/* Initialization code run first thing by the ELF startup code. For SH.
|
||||||
Copyright (C) 1995-1998, 2000, 2001, 2002 Free Software Foundation, Inc.
|
Copyright (C) 1995-2012 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -16,6 +16,7 @@
|
|||||||
License along with the GNU C Library; if not, see
|
License along with the GNU C Library; if not, see
|
||||||
<http://www.gnu.org/licenses/>. */
|
<http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#include <ctype.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
extern void __libc_init (int, char **, char **);
|
extern void __libc_init (int, char **, char **);
|
||||||
@ -40,6 +41,9 @@ init (int *data)
|
|||||||
/* This is a hack to make the special getopt in GNU libc working. */
|
/* This is a hack to make the special getopt in GNU libc working. */
|
||||||
__getopt_clean_environment (envp);
|
__getopt_clean_environment (envp);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Initialize ctype data. */
|
||||||
|
__ctype_init ();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SHARED
|
#ifdef SHARED
|
||||||
|
Loading…
x
Reference in New Issue
Block a user