16.01.2012 - version 0.1.1
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user