[Fusioninventory-commit] [fusinv/fusioninventory-agent] 31a163: unicode fix around Win32::OLE

Gonéri Le Bouder goneri at rulezlan.org
Thu May 17 17:08:13 UTC 2012


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

  Changed paths:
    M lib/FusionInventory/Agent/Tools/Win32.pm

  Log Message:
  -----------
  unicode fix around Win32::OLE

We configured Win32::OLE to use UTF8 with the CP => CP_UTF8 parameter.
The string are stored as Perl internal string but without the utf8 flag.

Since we know it's UTF8, we call utf8::upgrade to add the internal UTF8
flag on them.

Win32::OLE may returns non "string" item like array so we need to be
cleaver a bit.

This changes also add a fix for the case Win32::TieRegistry returns string with the UTF8 flag. In this case we won't reencode them.


  Commit: c7fee92d7f4da46a282ef3d39e15ae53a9d046f6
      https://github.com/fusinv/fusioninventory-agent/commit/c7fee92d7f4da46a282ef3d39e15ae53a9d046f6
  Author: Gonéri Le Bouder <goneri at rulezlan.org>
  Date:   2012-05-17 (Thu, 17 May 2012)

  Changed paths:
    M etc/agent.cfg
    M lib/FusionInventory/Agent/Task/Inventory/Input/Generic/Screen.pm
    M lib/FusionInventory/Agent/Task/Inventory/Input/Linux/Archs/i386.pm
    M lib/FusionInventory/Agent/Task/Inventory/Input/MacOS/CPU.pm
    M lib/FusionInventory/Agent/Task/Inventory/Input/Win32/CPU.pm
    M lib/FusionInventory/Agent/Task/Inventory/Input/Win32/Softwares.pm
    M lib/FusionInventory/Agent/Task/Inventory/Inventory.pm
    M lib/FusionInventory/Agent/Tools/Generic.pm
    A resources/macos/sysctl/10.6-macmini
    A resources/macos/system_profiler/10.6-macmini
    A resources/win32/wmi/xp-Win32_QuickFixEngineering.wmi
    M t/inventory/linux/cpu.t
    A t/inventory/macos/cpu.t
    M t/inventory/macos/memory.t
    M t/inventory/windows/cpu.t
    M t/inventory/windows/softwares.t
    M t/tools/generic.t

  Log Message:
  -----------
  Merge remote branch 'origin/2.2.x' into 2.2.x


Compare: https://github.com/fusinv/fusioninventory-agent/compare/ae38059...c7fee92


More information about the Fusioninventory-commit mailing list