diff options
Diffstat (limited to 'basic/source/runtime/step0.cxx')
-rw-r--r-- | basic/source/runtime/step0.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/basic/source/runtime/step0.cxx b/basic/source/runtime/step0.cxx index 3f3aca86b035..758ec73b4419 100644 --- a/basic/source/runtime/step0.cxx +++ b/basic/source/runtime/step0.cxx @@ -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 ); } |