Opened 15 months ago

Closed 15 months ago

Last modified 15 months ago

#34766 closed Uncategorized (duplicate)

utils.text: slugify misses "l" when converting "ł" — at Version 2

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 (2)

comment:1 by Mariusz Felisiak, 15 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, 15 months ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top