aboutsummaryrefslogtreecommitdiff
path: root/csu
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@schwinge.name>2012-04-02 22:26:43 +0200
committerThomas Schwinge <thomas@schwinge.name>2012-04-02 22:26:43 +0200
commit228c019e6336d6da448715a1c5fcca9771827f61 (patch)
tree4728bc5b92523c935b3ab72d8ff575993addbcfc /csu
parentd1635ef80ff1ddab70f2332f8780a6d126b89c08 (diff)
downloadglibc-228c019e6336d6da448715a1c5fcca9771827f61.tar
glibc-228c019e6336d6da448715a1c5fcca9771827f61.tar.gz
glibc-228c019e6336d6da448715a1c5fcca9771827f61.tar.bz2
glibc-228c019e6336d6da448715a1c5fcca9771827f61.zip
Call __ctype_init in early glibc startup.
This adds the bits missing from fd5bdc0924e0cfd1688b632068c1b26f3b0c88da.
Diffstat (limited to 'csu')
-rw-r--r--csu/init-first.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/csu/init-first.c b/csu/init-first.c
index 0115061956..050959dcb2 100644
--- a/csu/init-first.c
+++ b/csu/init-first.c
@@ -1,5 +1,5 @@
/* 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.
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
<http://www.gnu.org/licenses/>. */
+#include <ctype.h>
#include <unistd.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. */
__getopt_clean_environment (envp);
#endif
+
+ /* Initialize ctype data. */
+ __ctype_init ();
}