Skip to content

Conversation

@xabbuh
Copy link
Member

@xabbuh xabbuh commented Apr 17, 2025

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues
License MIT

see https://github.com/symfony/symfony/actions/runs/14509713498/job/40705561464?pr=58370#step:9:1891

@carsonbot carsonbot added this to the 6.4 milestone Apr 17, 2025
@carsonbot carsonbot changed the title [String] ignore the current locale before transliterating ASCII codes with iconv() [String] ignore the current locale before transliterating ASCII codes with iconv() Apr 17, 2025
}
$previousLocale = setlocale(\LC_CTYPE, 0);
try {
setlocale(\LC_CTYPE, 'C');
Copy link
Member

Choose a reason for hiding this comment

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

whta about this?

Suggested change
setlocale(\LC_CTYPE, 'C');
setlocale(\LC_CTYPE, 'C.UTF-8', 'C');

Copy link
Member

Choose a reason for hiding this comment

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

or actually C.UTF-8 creates the issue?

Copy link
Member Author

Choose a reason for hiding this comment

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

Exactly, C.UTF-8 produces the wrong result.

@nicolas-grekas
Copy link
Member

Thank you @xabbuh.

@nicolas-grekas nicolas-grekas merged commit 330e167 into symfony:6.4 Apr 18, 2025
10 of 11 checks passed
@xabbuh xabbuh deleted the locale-agnostic-ascii-slugger branch April 18, 2025 15:53
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.

4 participants