can't read ufw error messages in russian

Bug #580032 reported by Oleg Sevostyanov
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Ubuntu Translations
Fix Released
Low
Russian Ubuntu Translators
ufw
Fix Released
Undecided
Jamie Strandboge
ufw (Ubuntu)
Fix Released
Undecided
Jamie Strandboge

Bug Description

Binary package hint: ufw

I do wrong ufw command:
$ sudo ufw delete allow 53/udp from 192.168.2.1-192.168.2.20

and get error message like this:
ERROR: '\xd0\x9d\xd0\xb5\xd0\xb2\xd0\xb5\xd1\x80\xd0\xbd\xd0\xbe\xd0\xb5 \xd0\xba\xd0\xbe\xd0\xbb\xd0\xb8\xd1\x87\xd0\xb5\xd1\x81\xd1\x82\xd0\xb2\xd0\xbe \xd0\xb0\xd1\x80\xd0\xb3\xd1\x83\xd0\xbc\xd0\xb5\xd0\xbd\xd1\x82\xd0\xbe\xd0\xb2'

$ sudo ufw delete allow 53/udp from 192.168.2.0/24
ERROR: '\xd0\x9d\xd0\xb5\xd0\xb2\xd0\xb5\xd1\x80\xd0\xbd\xd0\xbe\xd0\xb5 \xd0\xba\xd0\xbe\xd0\xbb\xd0\xb8\xd1\x87\xd0\xb5\xd1\x81\xd1\x82\xd0\xb2\xd0\xbe \xd0\xb0\xd1\x80\xd0\xb3\xd1\x83\xd0\xbc\xd0\xb5\xd0\xbd\xd1\x82\xd0\xbe\xd0\xb2'

Where is problem may be?

$ sudo aptitude show ufw
Пакет: ufw
Состояние: установлен
Автоматически установлен: нет
Версия: 0.30pre1-0ubuntu2

Russian filenames and folders shows correctly.

Tags: patch
Revision history for this message
Azrael (azrael-com) wrote :

I can confirm this.

Additional info:

$ ufw --version
ufw 0.30pre1-0ubuntu2

$ locale
LANG=ru_RU.utf8
LC_CTYPE="ru_RU.utf8"
LC_NUMERIC="ru_RU.utf8"
LC_TIME="ru_RU.utf8"
LC_COLLATE="ru_RU.utf8"
LC_MONETARY="ru_RU.utf8"
LC_MESSAGES="ru_RU.utf8"
LC_PAPER="ru_RU.utf8"
LC_NAME="ru_RU.utf8"
LC_ADDRESS="ru_RU.utf8"
LC_TELEPHONE="ru_RU.utf8"
LC_MEASUREMENT="ru_RU.utf8"
LC_IDENTIFICATION="ru_RU.utf8"
LC_ALL=

Gabor Kelemen (kelemeng)
Changed in ubuntu-translations:
assignee: nobody → Russian Ubuntu Translators (ubuntu-l10n-ru)
status: New → Confirmed
Revision history for this message
Sergey Basalaev (sbasalaev) wrote :

It is the magic of Python. This patch should fix the issue.

Revision history for this message
Nick Kondratiev (nickkon) wrote :

I can also confirm this bug, but the patch above fixes it.

tags: added: patch
David Planella (dpm)
Changed in ubuntu-translations:
status: Confirmed → Triaged
importance: Undecided → Low
Changed in ufw:
assignee: nobody → Jamie Strandboge (jdstrand)
status: New → In Progress
Changed in ufw (Ubuntu):
assignee: nobody → Jamie Strandboge (jdstrand)
status: New → Triaged
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Thanks Serguey. I've applied this upstream and will get this into maverick.

Changed in ufw:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ufw - 0.30.0-1ubuntu1

---------------
ufw (0.30.0-1ubuntu1) maverick; urgency=low

  * src/frontend.py: display unicode error messages properly. Thanks to
    Serguey Basalaev.
    - upstream commit r700
    - LP: #580032
  * src/backend_iptables.py: fix gettext warning
    - upstream commit r701
  * run debconf-updatepo, but adjust debian/po/de.po and debian/po/es.po to
    add correct "Language:" tag
  * profiles/ufw-mailserver: remove Postfix specific language
    - upstream commit r705

ufw (0.30.0-1) unstable; urgency=low

  * New upstream release. Use 0.30.0 as the version even though upstream uses
    0.30 in order to sync to Ubuntu. Fixes:
    - LP: #568877
    - LP: #611982
    - LP: #606997
    - LP: #624199
    - LP: #625340
    - LP: #521359
    - LP: #436608
  * don't flush chains if ufw is not enabled (LP: #581744)
  * debian/postinst: don't source /usr/share/debconf/confmodule when $1 =
    triggered. Fix thanks to Colin Watson. (LP: #618410)
  * debian/control:
    - drop versioned depends on iptables. This helps with backporting now that
      the test suite can handle it
    - updated Standards-Version
  * debian/rules:
    - pass interpreter to run_tests.sh
    - don't install upstream application profiles for now
  * add rsyslog support
  * add debian/source/format
  * debian/before6.rules.md5sum: updated for ucf
 -- Jamie Strandboge <email address hidden> Mon, 30 Aug 2010 13:20:58 -0500

Changed in ufw (Ubuntu):
status: Triaged → Fix Released
Changed in ubuntu-translations:
status: Triaged → Fix Committed
Revision history for this message
ludo33200 (ludo-cheron) wrote :

Same problem in french / Ubuntu 10.04 LTS desktop

# ufw version
ufw 0.30pre1-0ubuntu2
Copyright 2008-2010 Canonical Ltd.

# locale
LANG=fr_FR.utf8
LC_CTYPE="fr_FR.utf8"
LC_NUMERIC="fr_FR.utf8"
LC_TIME="fr_FR.utf8"
LC_COLLATE="fr_FR.utf8"
LC_MONETARY="fr_FR.utf8"
LC_MESSAGES="fr_FR.utf8"
LC_PAPER="fr_FR.utf8"
LC_NAME="fr_FR.utf8"
LC_ADDRESS="fr_FR.utf8"
LC_TELEPHONE="fr_FR.utf8"
LC_MEASUREMENT="fr_FR.utf8"
LC_IDENTIFICATION="fr_FR.utf8"
LC_ALL=

#sudo ufw insert 0 deny proto tcp from 4.79.142.192 to any
ERROR: "Impossible d'ins\xc3\xa9rer la r\xc3\xa8gle \xc3\xa0 la position \xc2\xab\xc2\xa00\xc2\xa0\xc2\xbb"

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

ludo33200, it is not fixed in Ubuntu 10.04, but in Ubuntu 10.10. I have added a task to do an stable release update for Lucid.

Changed in ufw (Ubuntu Lucid):
assignee: nobody → Jamie Strandboge (jdstrand)
importance: Undecided → Medium
milestone: none → lucid-updates
status: New → Triaged
Changed in ufw:
status: Fix Committed → Fix Released
Changed in ubuntu-translations:
status: Fix Committed → Fix Released
no longer affects: ufw (Ubuntu Lucid)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.