cout << ' ' << NS_LossyConvertUCS2toASCII(string2).get() << '\n';
printf(' ' << NS_LossyConvertUCS2toASCII(string2).get() << '\n');
static void DebugPrintCompResult(const nsString& string1, const nsString& string2, int result){#ifdef WIN32  char s[512];  int len = WideCharToMultiByte(GetACP(), 0,                                (LPCWSTR ) string1.get(),  string1.Length(),                                s, 512, NULL,  NULL);  s[len] = '\0';  printf("%s ", s);    switch ((int)result) {    case 0:      printf("==");      break;    case 1:      printf(">");      break;    case -1:      printf("<");      break;    }  len = WideCharToMultiByte(GetACP(), 0,                            (LPCWSTR ) string2.get(),  string2.Length(),                            s, 512, NULL,  NULL);  s[len] = '\0';  printf(" %s\n", s);#else    // Warning: casting to char*    cout << NS_LossyConvertUCS2toASCII(string1).get() << ' ';    switch ((int)result) {    case 0:      cout << "==";      break;    case 1:      cout << '>';      break;    case -1:      cout << '<';      break;    }    cout << ' ' << NS_LossyConvertUCS2toASCII(string2).get() << '\n';#endif}