mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 10:48:18 +08:00
more
This commit is contained in:
@@ -35,6 +35,25 @@ int main() {
|
||||
x->finish();
|
||||
}
|
||||
|
||||
{
|
||||
std::string dst;
|
||||
const char *src = THIS_IS_JAPANESE;
|
||||
|
||||
x->set_src(src);
|
||||
|
||||
int err = x->string_convert_dest(dst);
|
||||
|
||||
if (err < 0) {
|
||||
cerr << "Conversion failed, " << Iconv::errstring(err) << endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
cout << "Test 1: " << src << endl;
|
||||
cout << " Res: " << dst << endl;
|
||||
cout << " Read: " << x->get_src_last_read() << endl;
|
||||
cout << " Wrote: " << x->get_dest_last_written() << endl;
|
||||
}
|
||||
|
||||
{
|
||||
char tmp[512];
|
||||
const char *src = THIS_IS_JAPANESE;
|
||||
|
Reference in New Issue
Block a user