summaryrefslogtreecommitdiffstats
path: root/knights/io_internet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knights/io_internet.cpp')
-rw-r--r--knights/io_internet.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/knights/io_internet.cpp b/knights/io_internet.cpp
index e29888c..b5cbaa6 100644
--- a/knights/io_internet.cpp
+++ b/knights/io_internet.cpp
@@ -187,7 +187,7 @@ void io_internet::connectToServer()
}
else
{
- socket = new TDESocket(myServer->URL, myServer->Port, 30);
+ socket = new TDESocket(myServer->URL.utf8(), myServer->Port, 30);
if(socket->socket() == -1)
{
/* Couldn't connect to server. Notify User and die gracefully */
@@ -221,7 +221,7 @@ void io_internet::connectToServer()
and close these tabs at will, or have multiple open at once. ALL communication to our tabs
needs to be done with SIGNALS & SLOTS to facilitate this.
*/
- consoleTab = new Console( 0, myServer->Name, myResource );
+ consoleTab = new Console( 0, myServer->Name.utf8(), myResource );
myTabList[consoleTab] = consoleTab;
myResource->tabManager->addTab( myTabList[consoleTab], i18n( "%1 Console" ).arg( myServer->Name ) );
connect( myTabList[consoleTab], TQT_SIGNAL( sendCMD( const Command& ) ), this, TQT_SLOT( recvCMD( const Command& ) ) );
@@ -847,9 +847,9 @@ void io_internet::parseStyle12(TQString line, const unsigned int Mode)
}
/* Verbose Coordinate Notation of previous move ( USE AS CAN ) */
- strcpy(move.CAN, fields[27].right(fields[27].length() - 2).replace(TQRegExp("-"), ""));
+ strcpy(move.CAN, fields[27].right(fields[27].length() - 2).replace(TQRegExp("-"), "").utf8());
/* SAN */
- strcpy(move.SAN, fields[29].replace(TQRegExp("\\+"), "").replace(TQRegExp("#"), ""));
+ strcpy(move.SAN, fields[29].replace(TQRegExp("\\+"), "").replace(TQRegExp("#"), "").utf8());
/* fill the line for the command */
position_line += fields[1]; /* Internal Rank #7 */
@@ -1024,7 +1024,7 @@ void io_internet::parseMoveList(TQString line)
move.ICS_MoveCounter = move_counter;
move.ICS_Mode = ICS_Movelist;
move.ICS_OnMove = WHITE;
- strcpy(move.SAN, two_plys[1]);
+ strcpy(move.SAN, two_plys[1].utf8());
command.setCommand((int&)CMD_Move);
command.setID(fics_to_knights[ficsMoveListNumber]);
command.setMove(move);
@@ -1037,7 +1037,7 @@ void io_internet::parseMoveList(TQString line)
move.ICS_MoveCounter = move_counter;
move.ICS_Mode = ICS_Movelist;
move.ICS_OnMove = BLACK;
- strcpy(move.SAN, two_plys[3]);
+ strcpy(move.SAN, two_plys[3].utf8());
command.setCommand((int&)CMD_Move);
command.setID(fics_to_knights[ficsMoveListNumber]);
command.setMove(move);