After much experimentation I was able to fix the problem with this monkey patch.
# Encoding.locale_charmap was "CP936" on the test system
module Delayed
class Worker
def name
return @name unless @name.nil?
"#{@name_prefix}host:#{Socket.gethostname.force_encoding(Encoding.locale_charmap).encode('utf-8')} pid:#{Process.pid}" rescue "#{@name_prefix}pid:#{Process.pid}"
end
end
end
I wanted to post this quickly in case anyone else ever has this problem. I'll try to remember to come back and make a pull request.
My Delayed::Job workers do not start on Chinese Windows.
I get this error:
After much experimentation I was able to fix the problem with this monkey patch.
I wanted to post this quickly in case anyone else ever has this problem. I'll try to remember to come back and make a pull request.