Skip to content
Browse files

Notes about cron environment and changed character classes

  • Loading branch information...
1 parent 0edb41c commit b939ed536b3f4fb0d398b59ce1f86e0bd89c4bb1 @candlerb candlerb committed
Showing with 8 additions and 0 deletions.
  1. +8 −0 soapbox.rb
8 soapbox.rb
@@ -79,6 +79,10 @@
default, ruby uses values from the environment to set the encodings of
strings read from files.
+ Even on the same system, your program could work when run from an
+ interactive shell but fail when run from a daemon such as cron. See
It's possible to override ruby's policy on this, but it requires
remembering to use some incantations. If you accidentally omit one, the
program may still work on your system but not on someone else's.
@@ -155,6 +159,10 @@ def append(str)
@buf << str.dup.force_encoding("ASCII-8BIT")
+* The arbitrary rules are constantly changing. For example, the behaviour
+ of \w and \s in a regexp will be different in the 1.9.2 release.
However I am quite possibly alone in my opinion. Whenever this pops up on
ruby-talk, and I speak out against it, there are two or three others who
speak out equally vociferously in favour. They tell me I am doing the

0 comments on commit b939ed5

Please sign in to comment.
Something went wrong with that request. Please try again.