freebsd-ports/graphics/inventor/files/patch-SoText3.c++
Maho Nakata 630eb2d3af SGI's Open Inventor (TM)
an object-oriented 3D toolkit offering a comprehensive
solution to interactive graphics programming problems.

PR:		46731
Submitted by:	Christian Gusenbauer <c47g@gmx.at>
2003-08-03 06:56:12 +00:00

19 lines
774 B
C++

*** lib/database/src/so/nodes/SoText3.c++.orig Mon Dec 23 13:37:59 2002
--- lib/database/src/so/nodes/SoText3.c++ Mon Dec 23 13:38:15 2002
***************
*** 2291,2297 ****
size_t outbytes = 2*inbytes+2;
char* output = (char*)UCSStrings[i];
! if ((iconv(conversionCode, &input, &inbytes, &output, &outbytes) == (size_t)-1)){
#ifdef DEBUG
SoDebugError::post("SoOutlineFontCache::convertToUCS",
"Error converting text to UCS-2");
--- 2291,2297 ----
size_t outbytes = 2*inbytes+2;
char* output = (char*)UCSStrings[i];
! if ((iconv(conversionCode, (const char **)&input, &inbytes, &output, &outbytes) == (size_t)-1)){
#ifdef DEBUG
SoDebugError::post("SoOutlineFontCache::convertToUCS",
"Error converting text to UCS-2");