Ticket #1465: filezilla_unicode_status_2.patch
File filezilla_unicode_status_2.patch, 689 bytes (added by , 20 years ago) |
---|
-
StatusCtrl.cpp
old new 325 325 #ifdef _UNICODE 326 326 int len = status.GetLength(); 327 327 int i; 328 CString ustatus = "\\uc0"; 329 bool last_unicode = true; 328 CString ustatus; 330 329 for (i = 0; i < len; i++) { 331 330 wchar_t x; 332 331 char buf[20]; 333 332 334 333 x = status[i]; 335 334 if (x < 256) { 336 if (last_unicode) { 337 ustatus += "{"; 338 ustatus += x; 339 ustatus += "}"; 340 } 341 else 342 ustatus += x; 343 last_unicode = false; 335 ustatus += x; 344 336 } 345 337 else { 346 338 sprintf(buf, "\\u%d.", (signed short)x); 347 339 ustatus += buf; 348 last_unicode = true;349 340 } 350 341 } 351 342 status = ustatus;