Actually, the ruby code for the apt provider is UTF-8 (most probably it
has the BOM at the beginning). Puppet will ONLY run under an UTF-8 using
locale. This is thanks to the "Great Idea[tm]" of the ruby interpreter
that only allows source code in the locale of the running process.
Regards, David
On 2013-10-01 21:39, Peter Berghold wrote:
Now I'm really confused... I use emacs and vi exclusively and neither of
those should be US-ASCII. This leads me to wonder which file. Is it the
provider itself or ???
On Tue, Oct 1, 2013 at 2:57 PM, Ayers, Mike
<mike_ay...@cable.comcast.com <mailto:mike_ay...@cable.comcast.com>> wrote:
> From: puppet-users@googlegroups.com
<mailto:puppet-users@googlegroups.com> [mailto:puppet- <mailto:puppet->
> us...@googlegroups.com <mailto:us...@googlegroups.com>] On Behalf
Of Peter Berghold
> What does "Could not prefetch package provider 'apt': invalid byte
> sequence in US-ASCII" mean exactly? This started showing up in
the logs
> of some of my servers...
If a file is being interpreted as US-ASCII, then it is
expected to have no characters with the high bit set. If you edited
any source files with an Unicode editor, it may have changed some of
your punctuatiuon to fancy Unicode versions of that punctuation
(e.g. a pair of quotes to "left quote" and "right quote"), which the
interpreter would not understand.
Blind stab: If you save a file as type "UTF-8" on Windows,
a BOM will be inserted as the first character in the file. Make
sure you save as ASCII.
HTH,
Mike
--
You received this message because you are subscribed to the Google
Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to puppet-users+unsubscr...@googlegroups.com
<mailto:puppet-users%2bunsubscr...@googlegroups.com>.
To post to this group, send email to puppet-users@googlegroups.com
<mailto:puppet-users@googlegroups.com>.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.
--
Peter L. Berghold salty.cowd...@gmail.com <mailto:salty.cowd...@gmail.com>
http://blog.berghold.net
--
You received this message because you are subscribed to the Google
Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.