We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4fcbb4b + a3a12ba commit 3fbee5aCopy full SHA for 3fbee5a
templates/config.erb
@@ -1,6 +1,16 @@
1
# a config.ru, for use with every rack-compatible webserver.
2
# SSL needs to be handled outside this, though.
3
4
+# Ruby 1.9 cares about encoding, and apache starts up as US-ASCII in most
5
+# cases. If you have a manifest that is UTF-8, then puppet won't be able to
6
+# handle it. To work around that, we change the default encoding. See
7
+# https://tickets.puppetlabs.com/browse/PUP-1386 and
8
+# https://github.com/puppetlabs/puppet/pull/1666 for more details.
9
+if RUBY_VERSION >= "1.9"
10
+ Encoding.default_external = Encoding::UTF_8
11
+ Encoding.default_internal = Encoding::UTF_8
12
+end
13
+
14
# if puppet is not in your RUBYLIB:
15
# $LOAD_PATH.unshift('/opt/puppet/lib')
16
0 commit comments