diff options
author | Karel Zak | 2010-11-15 16:47:13 +0100 |
---|---|---|
committer | Karel Zak | 2010-11-15 16:47:13 +0100 |
commit | f7a29259ee46b1065ca3ba36f921fecfcbb6fdc6 (patch) | |
tree | a66b300f7272a5750c0e10455cf985b24f0145fe /lib | |
parent | lib: add fallback for nl_langinfo() (diff) | |
download | kernel-qcow2-util-linux-f7a29259ee46b1065ca3ba36f921fecfcbb6fdc6.tar.gz kernel-qcow2-util-linux-f7a29259ee46b1065ca3ba36f921fecfcbb6fdc6.tar.xz kernel-qcow2-util-linux-f7a29259ee46b1065ca3ba36f921fecfcbb6fdc6.zip |
findmnt: follow HAVE_LANGINFO
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tt.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -15,9 +15,6 @@ #include <unistd.h> #include <string.h> #include <termios.h> -#ifdef HAVE_LANGINFO_H -#include <langinfo.h> -#endif #ifdef HAVE_SYS_IOCTL_H #include <sys/ioctl.h> #endif @@ -138,7 +135,7 @@ struct tt *tt_new_table(int flags) INIT_LIST_HEAD(&tb->tb_lines); INIT_LIST_HEAD(&tb->tb_columns); -#if defined(HAVE_WIDECHAR) && defined(HAVE_LANGINFO_H) +#if defined(HAVE_WIDECHAR) if (!(flags & TT_FL_ASCII) && !strcmp(nl_langinfo(CODESET), "UTF-8")) tb->symbols = &utf8_tt_symbols; else |