You are not logged in.

#1 2020-02-29 11:33:10

Comar
Member
Registered: 2020-02-29
Posts: 3

[SOLVED] Locale doesn't work with Rofi

Trying to run Rofi I always get the same error

 Rofi-WARNING **: 01:27:27.376: Failed to set locale 

I'm pretty sure my locale is set correctly

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Yes, i uncommented in the locale.gen:

en_US.UTF-8

run:

# locale-gen

and I wrote:

LANG=en_US.UTF-8

in my locale.conf as the wiki tells in the arch install page.

Last edited by Comar (2020-02-29 15:44:35)

Offline

#2 2020-02-29 12:23:01

loqs
Member
Registered: 2014-03-06
Posts: 18,827

Re: [SOLVED] Locale doesn't work with Rofi

Please post the output of the following

locale -a
localectl
grep -v ^# /etc/locale.gen

Please also use code tags for commands and their outputs.

Offline

#3 2020-02-29 15:19:51

Comar
Member
Registered: 2020-02-29
Posts: 3

Re: [SOLVED] Locale doesn't work with Rofi

loqs wrote:

Please post the output of the following

locale -a
localectl
grep -v ^# /etc/locale.gen

Here is the output:

[ ~]$ locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
es_US.utf8
it_IT.utf8
[ ~]$ localectl
   System Locale: LANG=en_US.UTF-8
       VC Keymap: it
      X11 Layout: n/a
[ ~]$ grep -v ^# /etc/locale.gen
es_US.UTF-8 UTF-8
it_IT.UTF-8 UTF-8
loqs wrote:

please also use code tags for commands and their outputs.

My bad, i corrected the post.

Last edited by Comar (2020-02-29 15:23:37)

Offline

#4 2020-02-29 15:24:56

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Locale doesn't work with Rofi

Comar wrote:

Yes, i uncommented in the locale.gen:

en_US.UTF-8

No you didn't. Read the output of the grep command that you just ran...


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2020-02-29 15:42:46

Comar
Member
Registered: 2020-02-29
Posts: 3

Re: [SOLVED] Locale doesn't work with Rofi

Slithery wrote:

No you didn't. Read the output of the grep command that you just ran...

OH, i didn't realized until now it was es instead of en. Thanks for the help

Last edited by Comar (2020-02-29 15:44:55)

Offline

#6 2024-02-03 22:55:09

iSantxs
Member
Registered: 2024-02-03
Posts: 6

Re: [SOLVED] Locale doesn't work with Rofi

The same thing happens to me, when executing

rofi -show drun

gives me:

Rofi-WARNING **: 16:53:41.255: Failed to set locale.

And I can't find a solution to the problem anywhere else, not even the one in this post.
Could you help me?

Offline

#7 2024-02-03 23:19:03

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,839

Re: [SOLVED] Locale doesn't work with Rofi

Don't necro bump, don't cross post and then see https://bbs.archlinux.org/viewtopic.php … 1#p1889781

Offline

#8 2024-02-04 00:16:21

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED] Locale doesn't work with Rofi

Closing this old solved thread.

Offline

Board footer

Powered by FluxBB