From: Sergey V Turchin <zerg@altlinux.ru> To: sisyphus@altlinux.ru Subject: Re: [sisyphus] qcad && lyx-qt (was licq) Date: Thu, 17 Apr 2003 11:38:24 +0400 Message-ID: <200304171138.29996.zerg@altlinux.ru> (raw) In-Reply-To: <200304162324.35170.LAV@VL3143.spb.edu> [-- Attachment #1: signed data --] [-- Type: text/plain, Size: 1274 bytes --] В сообщении от 16 Апрель 2003 23:24 Vitaly Lipatov написал: > On 16 Апрель 2003 21:50, Sergey V Turchin wrote: > > В сообщении от 16 Апрель 2003 21:21 Vitaly Lipatov написал: > > > stat64("/home/lav/work/Documents/??????? -1.lyx" > > > (а это когда пишет) > > > > когда делает fopen (мимо Qt) > > > > > При чём тут UTF-8? > > > > Так выглядят юникодные не-латинские символы в KOI8-R, например > > > > > И ещё, как обстоит дело с перетаскиванием файлов с русским > > > названием на ярлык программы (название файла передаётся > > > программе в UTF-8, а она ждёт его в локали) > > > > Конкретно смотреть надо, кто из них неправильно делает. > > Конкретно: QFileDialog возвращает строку с путём к файлу. > Я её вывожу с помощью printf и вижу ???? вместо русских букв. Потому, что это юникод. В локали ru_RU.UTF-8 Вы увидели бы русские буквы > Как выглядит UTF-8, я знаю - совсем не так. В koi8-r их нет, поэтому они никак не выглядят ;-) > Значит, QFileDialog что-то там преобразовывал внутри и не смог? У него все в порядке. Программа пытается сохранить файл с юникодным именем. Нужно перекодировать его сначала. QString->local8Bit()->data() > Надо тестовый пример писать? Мне - нет ;-) -- Regards, ZerG ### http://altlinux.ru ### ALT Linux Team ### zerg@altlinux.ru ### [-- Attachment #2: signature --] [-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2003-04-17 7:38 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-04-15 9:06 [sisyphus] licq Andriy Dobrovol's'kii 2003-04-15 15:33 ` Sergey V Turchin 2003-04-16 7:10 ` Andriy Dobrovol's'kii 2003-04-16 9:03 ` Sergey V Turchin 2003-04-16 9:23 ` Andriy Dobrovol's'kii 2003-04-16 10:40 ` Sergey V Turchin 2003-04-16 14:26 ` Vitaly Lipatov 2003-04-16 15:26 ` Sergey V Turchin 2003-04-16 17:21 ` Vitaly Lipatov 2003-04-16 17:50 ` [sisyphus] qcad && lyx-qt (was licq) Sergey V Turchin 2003-04-16 19:24 ` Vitaly Lipatov 2003-04-17 7:38 ` Sergey V Turchin [this message] 2003-04-17 8:31 ` [sisyphus] " Anton V. Boyarshinov 2003-04-17 9:19 ` Sergey V Turchin 2003-04-17 9:43 ` Anton V. Boyarshinov 2003-04-17 9:56 ` Sergey V Turchin 2003-04-17 21:59 ` Vitaly Lipatov 2003-04-18 11:05 ` Sergey V Turchin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=200304171138.29996.zerg@altlinux.ru \ --to=zerg@altlinux.ru \ --cc=sisyphus@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git