Bug #72330 [ReO->Csd]: CSV fields incorrectly split if escape char followed by UTF chars

From: Date: Thu, 21 Jul 2016 17:13:41 +0000
Subject: Bug #72330 [ReO->Csd]: CSV fields incorrectly split if escape char followed by UTF chars
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202486@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72330&edit=1 ID: 72330 Updated by: cmb@php.net Reported by: cronfy at gmail dot com Summary: CSV fields incorrectly split if escape char followed by UTF chars -Status: Re-Opened +Status: Closed Type: Bug Package: Strings related Operating System: Linux Mint 17.1 Rebecca PHP Version: Irrelevant Assigned To: cmb Block user comment: N Private report: N New Comment: Automatic comment on behalf of cmb Revision: http://git.php.net/?p=php-src.git;a=commit;h=f2c2a4be9e466f14677089efe33e20ca0b146809 Log: Fix #72330: CSV fields incorrectly split if escape char followed by UTF chars Previous Comments: ------------------------------------------------------------------------ [2016-07-21 16:13:58] cmb@php.net This issue does not only affect str_getcsv(), but also other CSV reading functions, so I've changed the bug title. ------------------------------------------------------------------------ [2016-07-17 11:45:36] cmb@php.net Thanks, cronfy. Might be related to bug #55507. ------------------------------------------------------------------------ [2016-07-17 11:08:52] cronfy at gmail dot com I can't change this bug status to Reopened, because I do not have enough privileges. ------------------------------------------------------------------------ [2016-07-17 11:07:50] cronfy at gmail dot com Yes, it it locale dependent. If I prepend script with 'setlocale(LC_ALL, "C")', everything works correctly. But if I don't (my default locale is ru_RU.UTF-8) or if I explicitly use 'setlocale(LC_ALL, "ru_RU")', result is incorrect. I can't demonstrate it at 3v4l.org as it does not support required locales. ------------------------------------------------------------------------ [2016-06-26 04:22:26] php-bugs at lists dot php dot net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=72330 -- Edit this bug report at https://bugs.php.net/bug.php?id=72330&edit=1

« previous php.bugs (#202486) next »