Skip to content

[ETL] current_working_directory() function now works correctly with non-Latin filenames - #2011

Merged
ice0 merged 1 commit into
synfig:masterfrom
ice0:etl-fix-get_current_dir
Feb 11, 2021
Merged

ice0 merged 1 commit into
synfig:masterfrom
ice0:etl-fix-get_current_dir

Conversation

@ice0

@ice0 ice0 commented Feb 6, 2021

Copy link
Copy Markdown
Collaborator

This problem mentioned by @rodolforg here: #1952, so I fixed it.

etl::absolute_path() trusting on getcwd(), that doesn't handle the famous encoding problems.

@ice0 ice0 added the Backport label Feb 6, 2021
@ice0 ice0 added this to the v1.4.1 milestone Feb 6, 2021
@ice0 ice0 added the Windows label Feb 6, 2021

@rodolforg rodolforg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really don't like to make libsynfig (more) dependent on glibmm, it prevents to use libsynfig on simpler projects (like embed it on Godot Engine or maybe some Android projects).

Maybe use iconv to convert utf-16 to utf-8 (on windows) would solve this issue.

Anyway, it isn't a reality right now. So, ok.

@ice0
ice0 merged commit 94c0805 into synfig:master Feb 11, 2021
@ice0
ice0 deleted the etl-fix-get_current_dir branch February 11, 2021 15:16
@ice0 ice0 mentioned this pull request Feb 28, 2021
ice0 added a commit to ice0/synfig that referenced this pull request Feb 28, 2021
ice0 added a commit to ice0/synfig that referenced this pull request Feb 28, 2021
morevnaproject pushed a commit that referenced this pull request Apr 20, 2021
morevnaproject pushed a commit to morevnaproject/synfig that referenced this pull request Aug 9, 2021
morevnaproject pushed a commit to morevnaproject/synfig that referenced this pull request Aug 9, 2021
@rodolforg rodolforg removed the Backport label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants