Yes, the locale-gen script requires that you use the real name according to /usr/share/i18n/SUPPORTED. But once ru_RU.CP1251 has been generated, glibc recognizes both ru_RU.CP1251 and the alias ru_RU.cp1251. For instance you can confirm it with:
locale -a | grep ru -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853586 Title: Cannot add locale CP1215 (lowcase) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1853586/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs