Ticket #1009: bcfg2-fix-encoding.patch

File bcfg2-fix-encoding.patch, 524 bytes (added by Michael Laß <bevan@…>, 11 years ago)

Patch for bcfg2-client to avoidd the problem

  • src/sbin/bcfg2

    a b  
    239239            times['caching'] = time.time() 
    240240 
    241241        try: 
    242             self.config = Bcfg2.Client.XML.XML(rawconfig) 
     242            self.config = Bcfg2.Client.XML.XML(rawconfig.encode(self.setup['encoding'])) 
    243243        except Bcfg2.Client.XML.ParseError, syntax_error: 
    244244            self.fatal_error("The configuration could not be parsed: %s" % 
    245245                             (syntax_error))