Skip to content

Conversation

@backportbot-nextcloud
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.

👍

@PVince81 PVince81 requested review from come-nc and solracsf November 17, 2021 10:50
@PVince81
Copy link
Member

test failure unrelated and I see php 7.4 was already covered and passing in other test suites

@PVince81 PVince81 merged commit 18c190f into stable21 Nov 17, 2021
@PVince81 PVince81 deleted the backport/29695/stable21 branch November 17, 2021 12:12
This was referenced Jan 7, 2022
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.

5 participants