Correct an Utf8 bug.
When using easyChams you need to set LANG to utf8
This commit is contained in:
parent
d3ee85fa2e
commit
e9e60fea07
|
@ -229,14 +229,14 @@ void CompilationWidget::updateConfig(QStringList list) {
|
|||
|
||||
void CompilationWidget::updateError() {
|
||||
QByteArray data = _myProcess->readAllStandardError();
|
||||
_console->insertPlainText(QString(data));
|
||||
_console->insertPlainText(QString::fromUtf8(data.constData()));
|
||||
int end = _console->verticalScrollBar()->maximum();
|
||||
_console->verticalScrollBar()->setValue(end);
|
||||
}
|
||||
|
||||
void CompilationWidget::updateText() {
|
||||
QByteArray data = _myProcess->readAllStandardOutput();
|
||||
QString str(data);
|
||||
QString str = QString::fromUtf8(data.constData());
|
||||
QRegExp rx = QRegExp ( "([0-9]+)%" );
|
||||
if ( str.contains(rx) ) {
|
||||
bool ok;
|
||||
|
|
|
@ -81,7 +81,8 @@ compile() {
|
|||
echo " -> Please update manually"
|
||||
exit 1
|
||||
fi
|
||||
svn update --accept postpone # par defaut on prendra la decision en cas de conflits plus tard (au cas ou le status n'est pas suffisant)
|
||||
#svn update --accept postpone # par defaut on prendra la decision en cas de conflits plus tard (au cas ou le status n'est pas suffisant)
|
||||
svn update # par defaut on prendra la decision en cas de conflits plus tard (au cas ou le status n'est pas suffisant)
|
||||
fi
|
||||
if [ ! -d "$BUILD/$TOOL" ]
|
||||
then
|
||||
|
@ -102,7 +103,7 @@ compile() {
|
|||
echo "#### Now compiling $TOOL ####"
|
||||
echo ""
|
||||
cmake -D "CMAKE_BUILD_TYPE:STRING=$MODE" -D "BUILD_DOC:STRING=$DOC" -D "BUILD_SHARED_LIBS:STRING=$SHARED" $SOURCE/$TOOL
|
||||
make "DESTDIR=$INSTALL" -j2 install
|
||||
make "DESTDIR=$INSTALL" -j8 install
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
|
|
Loading…
Reference in New Issue