Skip to content

Refactoring: Fix handling of slashes - "/" vs "\" #1121

Open

Description

@morevnaproject

Currently cross-platform handling of paths with Windows-like and Unis-like slashes deserves to be better.

There are a lot of calls to FileSystem::fix_slashes() function scattered around to handle correct handling of file paths. Currently this converts all (almost all) "\" slashes to "/". This needs to be refactored.

Here how I think things should be:

Internally Synfig should use unis-like slashes ("/") everywhere - in code and in saved XML files.
On Windows, when displaying some path in GUI widgets it should convert slashes to windows-like (when exposing into widget) and convert from windows-like to unis-like (when gathering path from widget).

Some info to consider:

ping @blackwarthog


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Activity

  1. added this to the v1.6.0 milestone on Jan 25, 2020
  2. rodolforg commented on Jan 25, 2020

    @rodolforg
    Contributor
  3. blackwarthog commented on Jan 25, 2020

    @blackwarthog
    Collaborator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions