| От | Andreas Pflug |
|---|---|
| Тема | Re: Further Mac woes |
| Дата | |
| Msg-id | 41505B59.6010905@pse-consulting.de обсуждение исходный текст |
| Ответ на | Further Mac woes (Adam H.Pendleton <fmonkey@fmonkey.net>) |
| Список | pgadmin-hackers |
Adam H.Pendleton wrote: > > The program crashes on the "int len = strlen(buf)" because buf = NULL This is evel. wxString.mb_str has nothing to do with languages. It converts a UCS2 or UCS4 string, i.e. the one-word-per-character (16 or 32 bit) Unicode representation (Linux/GTK is 32 bit, OSX probably too?) to UTF-8, the multi byte encoding. It may never crash because it's a simple algorithmic translation. Can you step into mb_str? You can check if from is correct, dump the memory of from.m_pchData which is an array of wxChars. it should contain one character in each low byte e.g. 00000050 00000072 0000006f 00000070 which equals Prop Regards, Andreas
В списке pgadmin-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера