From: Nobuyoshi Nakada Date: 2011-12-20T16:17:04+09:00 Subject: [ruby-core:41742] Re: Feature : optional argument in File.join Hi, (11/12/20 15:55), Nikolai Weibull wrote: > On Tue, Dec 20, 2011 at 02:12, Nobuyoshi Nakada wrote: >>> http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3AFileSelection >>> >>> which says : >>> >>> filename=(filename) >>> Sets a default path for the file requestor. If filename includes a >>> directory path, then the requestor will open with that path as its >>> current working directory. The encoding of filename is the on-disk >>> encoding, which may not be UTF-8. See GLib.filename_from_utf8. >> >> It's a bug of that ruby binding. It should absorb such platform >> differences. > > Well, it���s actually a problem with Gtk, not the Ruby binding for it. I meant, if Gtk doesn't accept slashes as file separators, then the binding library has to convert them. -- Nobu Nakada