Details
Description
Ruby on Windows now stores environment variables and values as UTF-8, see https://bugs.ruby-lang.org/issues/9715#note-8 so we should be able to remove the various monkey patches and workarounds in puppet, such as Puppet::Util.get_env
Puppet should be able to:
- manage registry entries with non-ascii characters
- manage users with umlat, C:\Users\Jöhn
- execute process with non-ascii in the command line as a non-ascii user
- get/set environment variables with rune characters: https://bugs.ruby-lang.org/issues/8822#note-6
See related info in :
And
exec { 'tomcat-configure-service': |
command => "powershell.exe Get-ChildItem Env:", |
onlyif => 'powershell.exe exit 0', |
provider => windows,
|
logoutput => true, |
#notify => $tomcat_service, |
tag => 'tomcat-configure-service', |
}
|
set USERNAME=Jöhn
|
set USERPROFILE=C:\Users\Jöhn
|
C:\> puppet apply manifests\bug_swedish_userprofile.pp --test
|