Project

General

Profile

Actions

Bug #15270

closed

Bug in class.t3lib_cs.php - substr() function

Added by Eloy Lafuente almost 19 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2005-12-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.8.1
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi,

I was playing with your class.t3lib_cs.php - substr() function when I've seen that ALWAYS, when using mb_substr() you force it to 'utf-8', ignoring completely the $charset parameter.

In my opinion, the line:

else return mb_substr($string,$start,$len,'utf-8');

should say:

else return mb_substr($string,$start,$len,$charset);

Hope it help, ciao :-)

Just to say that I'm a Moodle developer and we are going to use such library intensively in our migration to Unicode. Thanks for it!! B-)
(issue imported from #M2020)

Actions #1

Updated by Sebastian Kurfuerst almost 19 years ago

Hi masi,
it would be great if you could check this.

Thanks and Greets, Sebastian

Actions #2

Updated by Sebastian Kurfuerst almost 19 years ago

Hi Karsten,

it would be great if you might have a look on this issue as well.

Greets, Sebastian

Actions #3

Updated by Martin Kutschker almost 19 years ago

Eloy is right :-(

I'll fix it.

Actions #4

Updated by Martin Kutschker almost 19 years ago

Fixed in CVS (HEAD).

Actions

Also available in: Atom PDF