Comment 1 for bug 1922646

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

The first argument to dgettext() is the translation domain. Why would you pass an absurdly long string as the domain?

Try this instead:

$ python3
Python 3.8.6 (default, Jan 27 2021, 15:42:20)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> myvar = locale.dgettext('git', 'abs'*10000000)
>>> quit()