benchmark: added util to correct non-utf symbols [#CONV-8419]

This commit is contained in:
Pavel Kartavyy 2013-09-06 08:41:19 +00:00
parent c7d8723a54
commit 809b3ebc0b

View File

@ -0,0 +1,15 @@
#include <iostream>
#include <DB/IO/WriteBufferFromFileDescriptor.h>
#include <DB/IO/ReadBufferFromFileDescriptor.h>
#include <DB/IO/WriteBufferValidUTF8.h>
#include <DB/IO/copyData.h>
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;
}