From: William Lachance (william.lachance@sympatico.ca)
Date: Thu Jul 24 2003 - 01:03:04 EDT
Hi,
I wrote up a 5 second patch that should be enough to get the status bar
running on win32 again after my previous patch has been applied. This
work has been blessed by Dom. Someone, please test and commit.
-- William Lachance <william.lachance@sympatico.ca>
? statusbar.patch
Index: src/wp/ap/win/ap_Win32StatusBar.cpp
===================================================================
RCS file: /cvsroot/abi/src/wp/ap/win/ap_Win32StatusBar.cpp,v
retrieving revision 1.23
diff -r1.23 ap_Win32StatusBar.cpp
137d136
< const UT_UCS4Char * buf = textInfo->getBufUCS();
139,148c138,142
< char *pText = UT_convert ((char*)buf,
< UT_UCS4_strlen(buf)*sizeof(UT_UCS4Char),
< ucs4Internal(),
< XAP_EncodingManager::get_instance()->getNative8BitEncodingName(),
< &uRead, &uWrite);
<
< #ifdef DEBUG
< if(strlen(pText) > 10)
< UT_DEBUGMSG(("ap_usb_TextListener::notify: msg: UCS4 values (1st 10): 0x%04x, 0x%04x, 0x%04x, 0x%04x, 0x%04x, 0x%04x, 0x%04x, 0x%04x, 0x%04x, 0x%04x\nSystemCP=%s\n",*buf, *(buf+1),*(buf+2),*(buf+3),*(buf+4),*(buf+5),*(buf+6),*(buf+7),*(buf+8),*(buf+9),pText));
< #endif
--- > char *pText = UT_convert (textInfo->getBuf().utf8_str(), > textInfo->getBuf().length();, > "UTF-8", > XAP_EncodingManager::get_instance()->getNative8BitEncodingName(), > &uRead, &uWrite);
This archive was generated by hypermail 2.1.4 : Thu Jul 24 2003 - 01:17:05 EDT