diff options
author | Mark Longair <mhl@pobox.com> | 2013-10-04 17:21:49 +0100 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2013-10-04 17:29:06 +0100 |
commit | abfbb63875850922052da6e0626bdba4e137af65 (patch) | |
tree | 27c0e5aa809af213a1096e670cd571b859801323 /lib/tasks/config_files.rake | |
parent | 62c7844025044413158489554e5b6a4c7dc43bb0 (diff) |
Allow public body listing based on first letter outside US-ASCII
Under Ruby 1.8, it was previously impossible to use one of the "first
letter" alphabet links on the public body listing page if the first
letter was outside [A-Za-z] since the test for the parameter only
being a single letter wasn't aware of the possibly of multi-byte
characters. In addition, upcasing of letters outside [A-Za-z] didn't
work because String#upcase in Ruby 1.8 isn't Unicode-aware.
This commit fixes these two problems, so that non-US-ASCII first
letter links will work under Ruby 1.8.
(Fixes #1112.)
Diffstat (limited to 'lib/tasks/config_files.rake')
0 files changed, 0 insertions, 0 deletions