~nabijaczleweli/voreutils

b46d6ebf21a75ce02424e95a91d62b28394f153d — наб a month ago 053cda8
std::setlocale(), <array>
2 files changed, 3 insertions(+), 1 deletions(-)

M cmd/chown.cpp
M cmd/tr.cpp
M cmd/chown.cpp => cmd/chown.cpp +1 -0
@@ 3,6 3,7 @@


#include <algorithm>
#include <array>
#include <cstdio>
#include <errno.h>
#include <fts.h>

M cmd/tr.cpp => cmd/tr.cpp +2 -1
@@ 3,6 3,7 @@

#include <algorithm>
#include <cctype>
#include <clocale>
#include <cstring>
#include <cwctype>
#include <getopt.h>


@@ 218,7 219,7 @@ enum class operation : std::uint8_t { translate, prune, nothing };


int main(int argc, char * const * argv) {
	setlocale(LC_ALL, "");  // TODO: locale
	std::setlocale(LC_ALL, "");  // TODO: locale

	auto complement = false;
	auto prune      = false;