Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable22] Fix missing setlocale with php 8 #29743

Merged
merged 6 commits into from
Nov 17, 2021
Merged

Conversation

backportbot-nextcloud[bot]
Copy link

backport of #29695

When php version = 8, basename('§') does not bug even if LC_ALL is non-UTF-8 locale.
This cause OC_Util::isSetLocaleWorking() to skip setlocale("C.UTF-8").

Fix it by using escapeshellcmd instead of basename.

Signed-off-by: Naoto Kobayashi <[email protected]>
Using escapeshellcmd to get current locale causes error
if the function is disabled.

Add fallbacks to prevent the error.

Signed-off-by: Naoto Kobayashi <[email protected]>
Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@MichaIng MichaIng merged commit b9d3f6e into stable22 Nov 17, 2021
@MichaIng MichaIng deleted the backport/29695/stable22 branch November 17, 2021 11:06
@sebastiaoLa
Copy link

@PVince81 I think this one should be on milestone 22.2.4, this change does not appear on the 22.2.3, this PR was merged after the code was released

@skjnldsv skjnldsv mentioned this pull request Jan 7, 2022
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants