fixed the random() function on strings when the charset is not UTF-8
authorFabien Potencier <fabien.potencier@gmail.com>
Fri, 27 Jan 2012 07:24:59 +0000 (08:24 +0100)
committerFabien Potencier <fabien.potencier@gmail.com>
Fri, 27 Jan 2012 07:25:05 +0000 (08:25 +0100)
commitbc80f48f6a41e97aaf4504a3fe8d3b3997461a97
treeae5ee8ec3d8725825bd213e1fea8dccaba71d267
parentbf61cc534489258a04dc30bcdf24cbacbb66b665
fixed the random() function on strings when the charset is not UTF-8
(refs #614)
lib/Twig/Extension/Core.php
test/Twig/Tests/Extension/CoreTest.php