Skip to content

Conversation

@deivid-rodriguez
Copy link
Contributor

@deivid-rodriguez deivid-rodriguez commented Oct 31, 2024

What was the end-user or developer problem that led to this PR?

If Bundler is configured to install gems to a folder with a name including UTF-8 characters, and the gem package being installed includes files with UTF-8 characters in the name, Bundler will end up crashing with a "incompatible encodings error".

What is your fix for the problem, implemented in this PR?

The problem is that file names in .gem packages have ASCII encoding, which cause this error when joining the file name with the UTF-8 installation folder.

Casting the file names in the package to UTF-8 seems to fix the problem.

Fixes #6538.

Make sure the following tasks are checked

@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/incompatible-encodings branch from 932e063 to 03dfe05 Compare October 31, 2024 16:24
@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/incompatible-encodings branch from 03dfe05 to 8184c69 Compare November 1, 2024 09:27
@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/incompatible-encodings branch from 8184c69 to d478ec4 Compare November 1, 2024 10:48
@deivid-rodriguez deivid-rodriguez marked this pull request as ready for review November 1, 2024 12:20
@deivid-rodriguez deivid-rodriguez changed the title Fix incompatible encodings error Fix incompatible encodings error when paths with UTF-8 characters are involved Nov 1, 2024
@deivid-rodriguez deivid-rodriguez merged commit ebcc0e4 into master Nov 4, 2024
69 checks passed
@deivid-rodriguez deivid-rodriguez deleted the deivid-rodriguez/incompatible-encodings branch November 4, 2024 10:04
deivid-rodriguez added a commit that referenced this pull request Nov 4, 2024
…encodings

Fix incompatible encodings error when paths with UTF-8 characters are involved

(cherry picked from commit ebcc0e4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bundle install jekyll-sitemap incompatible character encodings: UTF-8 and ASCII-8BIT

2 participants