UTF-8 fix for Solaris
This commit is contained in:
parent
ac8ac70b9c
commit
1fc960f672
|
@ -413,9 +413,9 @@ class FVTerm : public FTerm
|
||||||
|
|
||||||
#if defined(__sun) && defined(__SVR4)
|
#if defined(__sun) && defined(__SVR4)
|
||||||
static int appendOutputBuffer (char);
|
static int appendOutputBuffer (char);
|
||||||
#else
|
|
||||||
static int appendOutputBuffer (int);
|
|
||||||
#endif
|
#endif
|
||||||
|
static int appendOutputBuffer (int);
|
||||||
|
|
||||||
|
|
||||||
// Data Members
|
// Data Members
|
||||||
static std::queue<int>* output_buffer;
|
static std::queue<int>* output_buffer;
|
||||||
|
|
|
@ -3003,17 +3003,7 @@ inline void FVTerm::appendOutputBuffer (const char s[])
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
int FVTerm::appendOutputBuffer (char ch)
|
int FVTerm::appendOutputBuffer (char ch)
|
||||||
{
|
{
|
||||||
output_buffer->push(ch);
|
// This method is required by tputs under Solaris
|
||||||
|
|
||||||
if ( output_buffer->size() >= TERMINAL_OUTPUT_BUFFER_SIZE )
|
|
||||||
flush_out();
|
|
||||||
|
|
||||||
return ch;
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
//----------------------------------------------------------------------
|
|
||||||
int FVTerm::appendOutputBuffer (int ch)
|
|
||||||
{
|
|
||||||
output_buffer->push(ch);
|
output_buffer->push(ch);
|
||||||
|
|
||||||
if ( output_buffer->size() >= TERMINAL_OUTPUT_BUFFER_SIZE )
|
if ( output_buffer->size() >= TERMINAL_OUTPUT_BUFFER_SIZE )
|
||||||
|
@ -3022,3 +3012,16 @@ int FVTerm::appendOutputBuffer (int ch)
|
||||||
return ch;
|
return ch;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------
|
||||||
|
int FVTerm::appendOutputBuffer (int ch)
|
||||||
|
{
|
||||||
|
// append method for unicode character
|
||||||
|
output_buffer->push(ch);
|
||||||
|
|
||||||
|
if ( output_buffer->size() >= TERMINAL_OUTPUT_BUFFER_SIZE )
|
||||||
|
flush_out();
|
||||||
|
|
||||||
|
return ch;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue