Whamcloud - gitweb
fix portability problem with uselocale(), et. al.
authorTheodore Ts'o <tytso@mit.edu>
Thu, 5 Dec 2024 01:25:32 +0000 (20:25 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 5 Dec 2024 03:16:50 +0000 (22:16 -0500)
commit44b850bc81092aa489f0224d804c294994031031
tree4a6676f4053e8aa817114ac4a54b60bb2fc23987
parent096463dcb37ad620f98538dde5b3fd9461bea14a
fix portability problem with uselocale(), et. al.

misc/create_inode_libarchive.c uses uselocale(), newlocale(), et. al.
These functions are defined in POSIX.1-2017, which isn't available
everywhere --- including MacOS and Windows.

We don't actually need to use these functions, since mke2fs already
calls setlocale() to initialize to use the default locale.  So there
was no reason to set and restore the locale to use exactly the default
locale.

Fixes: ecfd4dd1217a ("Decouple --without-libarchive and HAVE_ARCHIVE_H")
Fixes: 7e3a4f0a33e9 ("mke2fs: the -d option can now handle tarball input")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debugfs/debugfs.c
misc/create_inode_libarchive.c