Re: GLib.DIR_SEPARATOR_S problem on raspbian



On Tue, Sep 13, 2016 at 3:36 AM narcisse doudieu siewe <wambenarcisse yahoo fr> wrote:
Hello just to signal a problem.

GLib.DIR_SEPARATOR_S on raspbian gives "\\" in place of "//".
and GLib.DIR_SEPARATOR gives 92 number.

Several bugs are reported for this:
https://bugzilla.gnome.org/show_bug.cgi?id=696935
https://bugzilla.gnome.org/show_bug.cgi?id=749636
https://bugzilla.gnome.org/show_bug.cgi?id=757284

The short answer is, these constants are broken in introspected language bindings so don't use them. For example, in Python use the os.path module and in _javascript_ use GLib.build_filenamev() or Gio.File.

Regards,
Philip C


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