A
Anthony Ss
Hi,
Today I came across an issue with a customer custom report which was out
by 1 char over 40 or so lines. At first thought I had incorrectly
limited the field length, however the problem is only present where
there is a '£' char.
For example:
"1234".length => 4
"1234£".length => 6 (Expect 5)
"1234£6".length => 7 (Expect 6)
Tested on:
ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]
and:
ruby 1.8.6 (2009-03-31 patchlevel 368) [x86_64-linux]
I could not find anything in google covering this (Perhaps my google-fu
needs work) which brought me here.
Is this expected functionality in ruby? It does not seem right in my
mind.
Thanks.
Today I came across an issue with a customer custom report which was out
by 1 char over 40 or so lines. At first thought I had incorrectly
limited the field length, however the problem is only present where
there is a '£' char.
For example:
"1234".length => 4
"1234£".length => 6 (Expect 5)
"1234£6".length => 7 (Expect 6)
Tested on:
ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]
and:
ruby 1.8.6 (2009-03-31 patchlevel 368) [x86_64-linux]
I could not find anything in google covering this (Perhaps my google-fu
needs work) which brought me here.
Is this expected functionality in ruby? It does not seem right in my
mind.
Thanks.