Issue #23185 has been reported by liu changyuan.

----------------------------------------
Bug #23185: puppet agent service can't start when current system locale is not 
english in windows environment
https://projects.puppetlabs.com/issues/23185

* Author: liu changyuan
* Status: Unreviewed
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* Affected Puppet version: 3.2.4
* Keywords: windows win32-dir
* Branch: 
----------------------------------------
First of all, I am Chinese.
my laptop os is windows 7, and the 'Language for non-Unicode programs' is set 
to 'Chinese(Simplified,PRC)'.

several days before, i started install puppet 3.2.4 to my laptop, the package 
downloaded from downloads.puppetlabs.com/windows.
in the install progress, installer tells me puppet agent can't started. i found 
the command of puppet agent is 'service/daemon.bat', so i tried run it in 
command prompt. the result is:

C:/Puppet/sys/ruby/lib/ruby/gems/1.9.1/gems/win32-dir-0.4.3/lib/win32/dir.rb:95:
in `encode': "\xCB" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK (Enco
ding::UndefinedConversionError)
        from C:/Puppet/sys/ruby/lib/ruby/gems/1.9.1/gems/win32-dir-0.4.3/lib/win
32/dir.rb:95:in `block in <class:Dir>'
        from C:/Puppet/sys/ruby/lib/ruby/gems/1.9.1/gems/win32-dir-0.4.3/lib/win
32/dir.rb:74:in `each'
        from C:/Puppet/sys/ruby/lib/ruby/gems/1.9.1/gems/win32-dir-0.4.3/lib/win
32/dir.rb:74:in `<class:Dir>'
        from C:/Puppet/sys/ruby/lib/ruby/gems/1.9.1/gems/win32-dir-0.4.3/lib/win
32/dir.rb:5:in `<top (required)>'
        from C:/Puppet/sys/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require
.rb:60:in `require'
        from C:/Puppet/sys/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require
.rb:60:in `rescue in require'
        from C:/Puppet/sys/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require
.rb:35:in `require'
        from C:/Puppet/service/daemon.rb:5:in `<main>'

I googled, it's the win32-dir module's bug. after upgraded it to 0.4.6, problem 
solved.

bug issue: https://github.com/djberg96/win32-dir/issues/7


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to