Skip to content

Commit

Permalink
Handle malformed UTF-8 in Ruby 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Jolley committed Jan 17, 2010
1 parent 1d62e73 commit 108b9ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/sproutcore/models/manifest_entry.rb
Expand Up @@ -218,7 +218,8 @@ def scan_module(&block)
when :start

# line has a build directive or comment - its OK
results = line.scan(COMMENT_OR_DIRECTIVE)
# NOTE: skip line if it has invalid encoding
results = line.scan(COMMENT_OR_DIRECTIVE) rescue nil
if results && results.size > 0

# handle build directive
Expand Down

0 comments on commit 108b9ac

Please sign in to comment.