16.01.2012 - version 0.1.1

This commit is contained in:
peri4
2012-01-16 01:01:49 +04:00
parent 92691981fb
commit 8bb8287dcb
56 changed files with 65 additions and 62 deletions

View File

@@ -1,7 +1,7 @@
/*
PIP - Platform Independent Primitives
Text codings coder, based on "iconv"
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
Copyright (C) 2011 Ivan Pelipenko peri4ko@gmail.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@
PIStringList PICodec::availableCodecs() {
exec("iconv", "-l");
exec("/usr/bin/iconv", "-l");
waitForFinish();
PIString str(readOutput());
str.cutLeft(str.find("\n "));
@@ -35,7 +35,7 @@ PIByteArray PICodec::exec_iconv(const PIString & from, const PIString & to, cons
tf.clear();
tf << str;
tf.close();
exec("iconv", ("-f=" + from), ("-t=" + to), tf.path());
exec("/usr/bin/iconv", ("-f=" + from), ("-t=" + to), tf.path());
waitForFinish();
return readOutput();
}