twitter/twitter-cldr-rb — pull request #24 by timothyandrew (2012-04-28 20:53:24+00:00)
Title: Use String[Fixnum, Fixnum] syntax to get the first character of the line.

In `nfd_spec.rb`, we test against NormalizationTest.txt. This file has commented lines beginning with `#` or `@` that must be ignored. To do this, we used something like:

```ruby
unless line[0] =~ /(@|#)/
# Process line
end
```

This didn't work in Ruby 1.8.7, because str[index] gives you the `character code` of the character at index ([ref](http://ruby-doc.org/core-1.8.7/String.html#method-i-5B-5D)), while 1.9.2 gives you the character itself ([ref](http://ruby-doc.org/core-1.9.3/String.html#method-i-5B-5D)). So we use the str[index,length] syntax to get the first character which works in 1.8.7 and 1.9.2.