summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-07-08 10:16:44 +0200
committerJim Meyering <jim@meyering.net>2007-07-08 12:39:24 +0200
commit1cea914143cab171beaad1f3df60566bcfa48cff (patch)
tree82b8b17b86dbcc0d0e257c82f01537ce304d024c
parent685d3c3f2adfabbf79b626f84be17170b59d449d (diff)
downloadcoreutils-1cea914143cab171beaad1f3df60566bcfa48cff.tar.xz
Use <wchar.h>, not "wcwidth.h".
* src/wc.c: Now that gnulib provides the POSIX-specified <wchar.h>, include it and <wctype.h>, rather than "wcwidth.h". * src/ls.c: Include <wchar.h>, rather than "wcwidth.h".
-rw-r--r--ChangeLog7
-rw-r--r--src/ls.c2
-rw-r--r--src/wc.c3
3 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 7aafd142e..e2fdc5396 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-07-08 Jim Meyering <jim@meyering.net>
+
+ Use <wchar.h>, not "wcwidth.h".
+ * src/wc.c: Now that gnulib provides the POSIX-specified <wchar.h>,
+ include it and <wctype.h>, rather than "wcwidth.h".
+ * src/ls.c: Include <wchar.h>, rather than "wcwidth.h".
+
2007-07-05 Jim Meyering <jim@meyering.net>
setuidgid: set all groups, not just the primary one.
diff --git a/src/ls.c b/src/ls.c
index c4cca845f..183c0c166 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -62,6 +62,7 @@
#include <getopt.h>
#include <signal.h>
#include <selinux/selinux.h>
+#include <wchar.h>
/* Use SA_NOCLDSTOP as a proxy for whether the sigaction machinery is
present. */
@@ -102,7 +103,6 @@
#include "stat-time.h"
#include "strftime.h"
#include "strverscmp.h"
-#include "wcwidth.h"
#include "xstrtol.h"
#include "mreadlink.h"
diff --git a/src/wc.c b/src/wc.c
index b4464d2c4..884f86a50 100644
--- a/src/wc.c
+++ b/src/wc.c
@@ -23,6 +23,8 @@
#include <stdio.h>
#include <getopt.h>
#include <sys/types.h>
+#include <wchar.h>
+#include <wctype.h>
#include "system.h"
#include "error.h"
@@ -30,7 +32,6 @@
#include "quote.h"
#include "readtokens0.h"
#include "safe-read.h"
-#include "wcwidth.h"
#if !defined iswspace && !HAVE_ISWSPACE
# define iswspace(wc) \