[Fusioninventory-commit] [fusinv/fusioninventory-agent] 0de8c0: avoid Compress::Zlib "Wide character" error

Gonéri Le Bouder goneri at rulezlan.org
Mon May 21 13:48:12 UTC 2012


  Branch: refs/heads/2.2.x
  Home:   https://github.com/fusinv/fusioninventory-agent
  Commit: 0de8c0e32539111fd5b470ef79e64f6b8d62c0f5
      https://github.com/fusinv/fusioninventory-agent/commit/0de8c0e32539111fd5b470ef79e64f6b8d62c0f5
  Author: Gonéri Le Bouder <goneri at rulezlan.org>
  Date:   2012-05-21 (Mon, 21 May 2012)

  Changed paths:
    M lib/FusionInventory/Agent/HTTP/Client/OCS.pm
    M lib/FusionInventory/Agent/XML/Query.pm

  Log Message:
  -----------
  avoid Compress::Zlib "Wide character" error

Compress::Zlib try to do a utf8::downgrade on the string to
compress. This will fail if the UTF8 content can't be converted
to the local encoding.

To avoid problem, we convert the string to pure-ASCII string.

see: commit:f791c0eb973ebb4e8f2658d069116cce07bd9553





More information about the Fusioninventory-commit mailing list