gsl_getSystemTextEncoding -> osl_getThreadTextEncoding

This commit is contained in:
David Tardon
2011-11-24 12:06:54 +01:00
parent 20c8eb409e
commit fba911fea7
80 changed files with 128 additions and 135 deletions

View File

@@ -1181,7 +1181,7 @@ void SbiRuntime::StepLINPUT()
pIosys->Read( aInput );
Error( pIosys->GetError() );
SbxVariableRef p = PopVar();
p->PutString( String( aInput, gsl_getSystemTextEncoding() ) );
p->PutString( String( aInput, osl_getThreadTextEncoding() ) );
}
// end of program
@@ -1287,7 +1287,7 @@ void SbiRuntime::StepPRINT() // print TOS
if( p->GetType() >= SbxINTEGER && p->GetType() <= SbxDOUBLE )
s = ' '; // one blank before
s += s1;
ByteString aByteStr( s, gsl_getSystemTextEncoding() );
ByteString aByteStr( s, osl_getThreadTextEncoding() );
pIosys->Write( aByteStr );
Error( pIosys->GetError() );
}
@@ -1301,7 +1301,7 @@ void SbiRuntime::StepPRINTF() // print TOS in field
s = ' ';
s += s1;
s.Expand( 14, ' ' );
ByteString aByteStr( s, gsl_getSystemTextEncoding() );
ByteString aByteStr( s, osl_getThreadTextEncoding() );
pIosys->Write( aByteStr );
Error( pIosys->GetError() );
}
@@ -1325,7 +1325,7 @@ void SbiRuntime::StepWRITE() // write TOS
s += p->GetString();
if( ch )
s += ch;
ByteString aByteStr( s, gsl_getSystemTextEncoding() );
ByteString aByteStr( s, osl_getThreadTextEncoding() );
pIosys->Write( aByteStr );
Error( pIosys->GetError() );
}
@@ -1352,7 +1352,7 @@ void SbiRuntime::StepRENAME() // Rename Tos+1 to Tos
void SbiRuntime::StepPROMPT()
{
SbxVariableRef p = PopVar();
ByteString aStr( p->GetString(), gsl_getSystemTextEncoding() );
ByteString aStr( p->GetString(), osl_getThreadTextEncoding() );
pIosys->SetPrompt( aStr );
}