lab icon indicating copy to clipboard operation
lab copied to clipboard

[postgresql] init of database-cluster does not set locale

Open machinaeXphilip opened this issue 2 years ago • 3 comments

when following the step by step of the postgresql guide, the init command as described produces a different output than showed in the guide.

In order to correct this the locale needs to be set.

machinaeXphilip avatar Jan 04 '23 15:01 machinaeXphilip

How exactly is the output different?

SalocinHB avatar Jan 06 '23 16:01 SalocinHB

It throws an error about the missing locale settings and fails:

initdb: error: invalid locale settings; check LANG and LC_* environment variables

looks like the tutorial assumes that the environment variables are set (to 'de_DE.UTF-8' german). But in none of the instances I saw that was the case by default. Or am I missing sth?

as i understand it, the postgres init tutorial does not mention the locale at all. Yet one must be set for it to work as written in the tutorial. Follwing the step by step fail at this point unless a locale is set. And in order to get the output that is presented in the step by step, it would need to be a german locale.

machinaeXphilip avatar Jan 06 '23 20:01 machinaeXphilip

I just stumbled on this problem myself. There is no guide or info or something that helps out with how to set the locale on an uberspace, thus following the guide won't work

herzogmedia avatar Apr 02 '23 12:04 herzogmedia