Skip to content

Fix locale issue on Enterprise Linux systems #656

Merged
bors[bot] merged 1 commit intomainfrom
sv/locale-fix
Dec 14, 2022
Merged

Fix locale issue on Enterprise Linux systems #656
bors[bot] merged 1 commit intomainfrom
sv/locale-fix

Conversation

@syvb
Copy link
Contributor

@syvb syvb commented Dec 13, 2022

(currently untested)

@syvb syvb requested a review from epgts December 13, 2022 20:54
{
"LC_COLLATE 'C.UTF-8' LC_CTYPE 'C.UTF-8'"
}
_ => "LC_COLLATE 'C' LC_CTYPE 'C'",
Copy link
Contributor

Choose a reason for hiding this comment

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

This does fix on rocky 8 (about to test all systems), but now that I see that C works, why don't we use that everywhere? I thought we required utf-8 for some reason.

But C is the one locale guaranteed to work.

I'm testing everything with this now:

                let locale_flags = "LC_COLLATE 'C' LC_CTYPE 'C'";

Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

sigh:

thread 'main' panicked at 'could not create db
original_update_tests_1.12.1 due to db error: ERROR: new
collation (C) is incompatible with the collation of the template
database (C.UTF-8)

Copy link
Contributor

Choose a reason for hiding this comment

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

(which is to say, 'just use C everywhere' is no good: trying your branch everywhere now)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just to note: the code is like this because it needs to use the same method as this code from pgx.

Copy link
Contributor

@epgts epgts left a comment

Choose a reason for hiding this comment

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

Looks good on centos7, rocky8, debian1[01], ubuntu{18,20,22}.04

Thanks!

@syvb
Copy link
Contributor Author

syvb commented Dec 14, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Dec 14, 2022

Build succeeded:

@bors bors bot merged commit 687a710 into main Dec 14, 2022
@bors bors bot deleted the sv/locale-fix branch December 14, 2022 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants