Opened 16 months ago

Closed 16 months ago

Last modified 16 months ago

#34766 closed Uncategorized (duplicate)

utils.text: slugify misses "l" when converting "ł"

Reported by: Marcin Wieczorek Owned by: nobody
Component: Utilities Version: 4.2
Severity: Normal Keywords: slugify, utils
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Mariusz Felisiak)

I expected Polish word "żółć" to be slugified as "zolc". Instead slugify returns zoc.

$ pip freeze | grep Django
Django==4.2.4
$ python -V
Python 3.11.3
$ python
>>> from django.utils.text import slugify
>>> slugify("żółć")
'zoc'
>>> slugify("zażółć gęslą jaźń")
'zazoc-gesla-jazn'

Change History (4)

comment:1 by Mariusz Felisiak, 16 months ago

Resolution: invalid
Status: newclosed

Django uses NFKD normalization via unicodedata.normalize(). We don't maintain our own character maps, so there is nothing to "fix" in Django itself.

comment:2 by Mariusz Felisiak, 16 months ago

Description: modified (diff)

comment:3 by Mariusz Felisiak, 16 months ago

Resolution: invalidduplicate

Duplicate of #8391.

comment:4 by Marcin Wieczorek, 16 months ago

Thank you

Note: See TracTickets for help on using tickets.
Back to Top