chef
https://github.com/opscode/chef
Ruby
A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
Win32::Registry#export_string
::Win32::Registry#export_string is used when enumerating child keys and values and re encodes a UTF-16LE to the local codepage. This can result in encoding incompatibilities if the native codepage does not support the characters in the registry. There is an open bug in ruby at https://bugs.ruby-lang.org/issues/11410. Rather than converting the UTF-16LE originally returned by the win32 api, we encode to UTF-8 which will likely not result in any conversion error.
Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/monkey_patches/win32/registry.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Win32--Registry-export_string-for-pr
# Commit to gitgit add lib/chef/monkey_patches/win32/registry.rbgit commit -m "better docs for Win32::Registry#export_string"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Win32--Registry-export_string-for-pr
hub pull-request
# Celebrate!