puppetlabs/facter — pull request #249 by calmh (2012-06-29 23:01:55+00:00)
Title: (#15306) Read /proc/self/status in binary mode

On at least a Joyent SmartMachine (illumos based Solaris) the file
/proc/self/status contains binary data. When read with File.read in Ruby
1.9, this is parsed as UTF-8 which fails with an exception. This patch
instead opens the file in binary mode to avoid the failure.