Bug #18556 [Com]: Setting locale to 'tr_TR' lowercases class names

From: Date: Sun, 10 Mar 2019 02:36:20 +0000
Subject: Bug #18556 [Com]: Setting locale to 'tr_TR' lowercases class names
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-219899@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=18556&edit=1

 ID:                 18556
 Comment by:         c dot madmax at gmail dot com
 Reported by:        spud at nothingness dot org
 Summary:            Setting locale to 'tr_TR' lowercases class names
 Status:             Closed
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   Linux (RedHat 7.2)
 PHP Version:        5CVS, 4CVS (2005-10-04)
 Assigned To:        stas
 Block user comment: N
 Private report:     N

 New Comment:

Shame on you, PHP developers!

I tested with PHP 7.2.4 and the problem still exists after 17 years!!!


You ask for example code?
Is it too hard for you just to try setlocale('tr_TR.UTF-8') followed by
strtoupper('i'), strtolower('I') or ucfirst('i')?


Previous Comments:
------------------------------------------------------------------------
[2018-09-11 21:49:05] rasimyilmaz at msn dot com

I solve this problem with
Installing operating system with English and United states and U.S. English keyboard

------------------------------------------------------------------------
[2018-06-24 03:06:01] tolga dot korkunckaya at gmail dot com

Here is the env information I've tested this issue:

root@debian9:~# lsb_release -da
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux testing (buster)
Release:        testing
Codename:       buster

root@debian9:~# uname -a
Linux debian9 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64 GNU/Linux

root@debian9:~# php -v
PHP 7.2.4-1+b2 (cli) (built: May 29 2018 02:53:13) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.4-1+b2, Copyright (c) 1999-2018, by Zend Technologies
 
root@debian9:~# cat /etc/locale.gen | grep -v "#"
en_US.UTF-8 UTF-8
tr_TR.UTF-8 UTF-8

root@debian9:~# apache2ctl -v
Server version: Apache/2.4.33 (Debian)
Server built:   2018-05-28T17:29:02

------------------------------------------------------------------------
[2018-06-24 03:03:46] tolga dot korkunckaya at gmail dot com

The problem with the class names seems to be solved as of php version 7.2
However, the issue with lowercasing uppercase I (İ) and uppercasing lovercase i (ı) is still
problematic. I'll create a new issue about this.

------------------------------------------------------------------------
[2018-05-17 10:48:01] requinix@php.net

@klemen: Please be specific about what works and what does not. Example code would be nice.
Also, PHP 7.0 is not actively supported anymore so make sure the problem occurs in 7.1 and/or 7.2.

------------------------------------------------------------------------
[2018-05-17 10:43:55] klemen dot praznik at innovatif dot com

fyi it seems that this bug has resurfaced in PHP 7.x

PHP 7.0.27-0+deb9u1 (cli) (built: Jan  5 2018 13:51:52) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.27-0+deb9u1, Copyright (c) 1999-2017, by Zend Technologies

------------------------------------------------------------------------


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=18556


--
Edit this bug report at https://bugs.php.net/bug.php?id=18556&edit=1


Thread (68 messages)

« previous php.bugs (#219899) next »