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.