diff --git a/utils/corrector_utf8/corrector_utf8.cpp b/utils/corrector_utf8/corrector_utf8.cpp new file mode 100644 index 00000000000..7252dba9d2a --- /dev/null +++ b/utils/corrector_utf8/corrector_utf8.cpp @@ -0,0 +1,15 @@ +#include + +#include +#include +#include +#include + +int main(int argc, char **argv) +{ + DB::ReadBufferFromFileDescriptor rb(STDIN_FILENO); + DB::WriteBufferFromFileDescriptor wb(STDOUT_FILENO); + DB::WriteBufferValidUTF8 utf8_b(wb); + DB::copyData(rb, utf8_b); + return 0; +}