[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DVD-плеер



1. should != must
Если current dir в непонятной кодировке, это не повод не открыть оттуда файл (imho).

2. В тех гномоприложениях, которые у меня есть, единственное, что не работает, создание файла с русским названием через меню, а не через командную строку. А о том, что я не могу сохранить/прочитать файл в/из каталога с русским названием, речи вообще нет, все всегда работало.

То есть дело не в гноме.

On 10.08.2010 15:32, Иван Лох wrote:
On Tue, Aug 10, 2010 at 04:29:12PM +0400, Иван Лох wrote:

There is a group of functions which wrap the common POSIX functions
dealing with filenames (g_open(), g_rename(), g_mkdir(), g_stat(),
g_unlink(), g_remove(), g_fopen(), g_freopen()). The point of these
wrappers is to make it possible to handle file names with any Unicode
characters in them on Windows without having to use ifdefs and the wide
character API in the application code.

The pathname argument should be in the GLib file name encoding. On POSIX
this is the actual on-disk encoding which might correspond to the locale
settings of the process (or the G_FILENAME_ENCODING environment variable), or not.

http://library.gnome.org/devel/glib/2.18/glib-File-Utilities.html





Reply to: