# [Voting] Add locale for case insensitive grapheme functions

- Thread: https://externals.io/message/127791
- Original archive: https://news-web.php.net/php.internals/127791
- Started by youkidearitai on 2025-06-30T07:11:16+00:00
- Messages: 6
- RFC: Add locale for case insensitive grapheme functions (Implemented (PHP 8.5)) — https://externals.io/rfc/grapheme_add_locale_for_case_insensitive.md
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #127791 — youkidearitai — 2025-06-30T07:11:16+00:00

URL: https://externals.io/message/127791#127791

Hi, Internals

I have just started add locale for grapheme_* functions.
https://wiki.php.net/rfc/grapheme_add_locale_for_case_insensitive

Voting end is 2025-07-15 00:00:00 GMT.

Regards
Yuya

-- 
---------------------------
Yuya Hamada (tekimen)
- https://tekitoh-memdhoi.info
- https://github.com/youkidearitai

---

## #127796 — Derick Rethans — 2025-06-30T09:49:02+00:00

URL: https://externals.io/message/127791#127796 · In reply to: #127791

> Hi, Internals
> 
> I have just started add locale for grapheme_* functions.
> https://wiki.php.net/rfc/grapheme_add_locale_for_case_insensitive
> 
> Voting end is 2025-07-15 00:00:00 GMT.

Hi,

I have voted no for now, as I don't think the RFC explains a various 
amount of situations:

- How are locale string handled that don't exist (exception? silently 
  ignored?)
- What range of locales are allowed? Where would this list come from?
- How do fallbacks of locales work?
- Are locale variants handled?
- Is it really wise to use strings for locales?
- How are locale strenghts handled, such as the 
  primary/secondary/tertiary modes of ICU — these influence the 
  matchy-ness of characters.

For all these situations, there should also be tests, but that's an 
implementation detail.

cheers,
Derick

-- 
https://derickrethans.nl | https://xdebug.org | https://dram.io

Author of Xdebug. Like it? Consider supporting me: https://xdebug.org/support

mastodon: @derickr@phpc.social @xdebug@phpc.social

---

## #127797 — youkidearitai — 2025-06-30T10:02:00+00:00

URL: https://externals.io/message/127791#127797 · In reply to: #127796

2025年6月30日(月) 18:49 Derick Rethans <derick@php.net>:
>
> 
>
> > […]
>
> Hi,
>
> I have voted no for now, as I don't think the RFC explains a various
> amount of situations:
>
> - How are locale string handled that don't exist (exception? silently
>   ignored?)
> - What range of locales are allowed? Where would this list come from?
> - How do fallbacks of locales work?
> - Are locale variants handled?
> - Is it really wise to use strings for locales?
> - How are locale strenghts handled, such as the
>   primary/secondary/tertiary modes of ICU — these influence the
>   matchy-ness of characters.
>
> For all these situations, there should also be tests, but that's an
> implementation detail.
>
> cheers,
> Derick
>
> --
> https://derickrethans.nl | https://xdebug.org | https://dram.io
>
> Author of Xdebug. Like it? Consider supporting me: https://xdebug.org/support
>
> mastodon: @derickr@phpc.social @xdebug@phpc.social

Hi, Derick and Internals

Thanks for feedback.
I got it.

However, Why didn't you take part in the under discussion phase?
I would like to improve the compatibility of PHP's Unicode.

Am I not eligible to participate?
I feel giant walls to Internals.from east asia.

Regards
Yuya

-- 
---------------------------
Yuya Hamada (tekimen)
- https://tekitoh-memdhoi.info
- https://github.com/youkidearitai

---

## #127803 — youkidearitai — 2025-06-30T14:57:20+00:00

URL: https://externals.io/message/127791#127803 · In reply to: #127797

2025年6月30日(月) 19:02 youkidearitai <youkidearitai@gmail.com>:
>
> 2025年6月30日(月) 18:49 Derick Rethans <derick@php.net>:
> > […]
>
> Hi, Derick and Internals
>
> Thanks for feedback.
> I got it.
>
> However, Why didn't you take part in the under discussion phase?
> I would like to improve the compatibility of PHP's Unicode.
>
> Am I not eligible to participate?
> I feel giant walls to Internals.from east asia.
>
> Regards
> Yuya
>
> --
> ---------------------------
> Yuya Hamada (tekimen)
> - https://tekitoh-memdhoi.info
> - https://github.com/youkidearitai
> -----------------------------

Hi, Internals

I am wrong signature for the RFC.
I want go to stop "Voting" phase and moving back to "Under Discussion".
I'll fix this RFC.

Please give me a time.
Thanks a lot pointing to me.
Regards

Yuya

-- 
---------------------------
Yuya Hamada (tekimen)
- https://tekitoh-memdhoi.info
- https://github.com/youkidearitai

---

## #127817 — Derick Rethans — 2025-07-01T10:02:16+00:00

URL: https://externals.io/message/127791#127817 · In reply to: #127797

> 2025年6月30日(月) 18:49 Derick Rethans <derick@php.net>:
> > […]
> 
> Thanks for feedback.
> I got it.
> 
> However, Why didn't you take part in the under discussion phase?
> I would like to improve the compatibility of PHP's Unicode.

I thought I had, but you're right — that was on a different thread about 
str_icontains.


cheers,
Derick

---

## #127818 — youkidearitai — 2025-07-01T10:32:35+00:00

URL: https://externals.io/message/127791#127818 · In reply to: #127817

2025年7月1日(火) 19:02 Derick Rethans <derick@php.net>:
>
> 
>
> > […]
>
> I thought I had, but you're right — that was on a different thread about
> str_icontains.
>
>
> cheers,
> Derick

Hi, Derick

Thank you for reply.
Indeed, I'm going to discuss thread about str_icontains too.

Regards
Yuya

-- 
---------------------------
Yuya Hamada (tekimen)
- https://tekitoh-memdhoi.info
- https://github.com/youkidearitai
