Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tell Ruby 2.0 to use US-ASCII encoding for vcard.rb
This fixes sam-github#5. Ruby 2.0 assumes UTF-8 sourcefile encoding.
- Loading branch information
3915b69
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I run the vcard tests with this under Ruby
2.0.0
, the "invalid multibyte escape" error does go away, but I get the following error instead.It seems that this commit causes vpim to break on any UTF-8 input, because Ruby barfs when you try to put UTF-8 strings through a regex literal from a file marked as
# encoding: US-ASCII
.