Re: [Templates] Stash.xs - unicode issues with 'length'

2009-05-20 Thread Andy Wardley
On 18/5/09 19:21, Alexey A. Kiritchun wrote: See the attached patch (against my system's 2.14, but should apply to the trunk) and test case. Hi Alexey, Patch applied, many thanks. A ___ templates mailing list templates@template-toolkit.org

[Templates] Stash.xs - unicode issues with 'length'

2009-05-18 Thread Alexey A. Kiritchun
Hello. I think there's a problem in Stash.xs: length should return _length_ of the string, which may be Unicode, instead of its size in bytes. See the attached patch (against my system's 2.14, but should apply to the trunk) and test case. -- Alexey A. Kiritchun Yandex, search systems