Modify

Ticket #705 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

unicode german umlaut client error

Reported by: m4z <686f6c6d@…> Owned by: solj
Priority: minor Milestone: Bcfg2 1.0.0 Release
Component: bcfg2-client Version: 1.0
Keywords: unicode umlaut Cc:

Description

This is revision 5399.

# bcfg2 -qenv
Traceback (most recent call last):
  File "/usr/local/bin/bcfg2", line 300, in <module>
    client.run()
  File "/usr/local/bin/bcfg2", line 242, in run
    self.config = Bcfg2.Client.XML.XML(rawconfig)
  File "/usr/lib/python2.5/xml/etree/ElementTree.py", line 963, in XML
    parser.feed(text)
  File "/usr/lib/python2.5/xml/etree/ElementTree.py", line 1245, in feed
    self._parser.Parse(data, 0)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xc4' in position 21094: ordinal not in range(128)
# bcfg2 -qenvc ~/`hostname`.`date "+%F_%H-%M"`.xml
Traceback (most recent call last):
  File "/usr/local/bin/bcfg2", line 300, in <module>
    client.run()
  File "/usr/local/bin/bcfg2", line 242, in run
    self.config = Bcfg2.Client.XML.XML(rawconfig)
  File "/usr/lib/python2.5/xml/etree/ElementTree.py", line 963, in XML
    parser.feed(text)
  File "/usr/lib/python2.5/xml/etree/ElementTree.py", line 1245, in feed
    self._parser.Parse(data, 0)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xc4' in position 21094: ordinal not in range(128)
# head -c 21100 <hostname>.<date>.xml | tail -c 20 | tail -n1; echo ""
" Letzte Änder
# cat /etc/bcfg2.conf
[communication]
protocol = xmlrpc/ssl
password = ...
user = ...

[components]
bcfg2 = https://...:6789
encoding = UTF-8
# 

Attachments

Change History

comment:1 Changed 12 years ago by solj

  • Owner changed from desai to solj
  • Status changed from new to accepted

comment:2 Changed 12 years ago by solj

  • Status changed from accepted to closed
  • Resolution set to fixed

I believe this is fixed in [f940deb8419060c6a5685ad460efa232ba1a8aad] (SVN r5410).

comment:3 Changed 12 years ago by m4z <686f6c6d@…>

it is fixed indeed, thank you.

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.