vagrant/plugins/provisioners
Sam Phippen 53714abfa3 Handle encoding errors in shell provisioner newline normalization.
The problem demonstrated in #6065 is that a string has incorrectly been
encoded with US-ASCII even though it contains invalid US-ASCII byte
sequences (any byte with the most significant bit on is invalid in the
US-ASCII encoding).

The thing about doing newline normalization is that it is not actually
sensitive to the presence of US-ASCII byte sequenzes. Additionally, it
is very unlikely that a user will ever be using an encoding where \r\n
is not encoded the same as it would be in ASCII.

This patch first tries the existing method of normalizing the newlines
in the provided script file, if that fails for any reason it force
encodes the string to ASCII-8BIT (which allows the most significant bit
to be on in any individual byte) and then performs the substitution in
that byte space.
2015-09-12 14:36:54 +01:00
..
ansible Fix invalid ini entry error when ansible_ssh_private_key_file contains spaces 2015-08-29 18:00:20 +09:00
cfengine Fix for Issue #6006 - cfengine will now install 2015-07-20 02:08:13 -07:00
chef Use Chef Client for Chef Zero 2015-07-09 21:23:42 -06:00
docker Checksum args to each docker container in local data 2015-07-10 11:32:02 -06:00
file provisioners/file: validate source relative to Vagrantfile path 2015-07-06 14:22:00 -06:00
puppet provisioners/puppet: fix config merging [GH-5958] 2015-07-15 10:59:34 -07:00
salt Fix broken masterless minion configuration 2015-08-03 12:11:32 +01:00
shell Handle encoding errors in shell provisioner newline normalization. 2015-09-12 14:36:54 +01:00