You are not logged in.

#1 2011-12-20 02:01:25

Deusdies
Member
Registered: 2010-09-13
Posts: 116

[SOLVED] Any way to make Yaourt/Pacman ignore locale settings?

So here's the thing. I have my computer running in Serbian locale, which uses cyrilic alphabet (као например ово). While I'm fine with this (obviously), I use roman script to type commands in the terminal. Here's where the first world problem arises:

# pacman -S chromium
#Да ли сте сигурни? (Д/Н)

This last sentence asks "are you sure?" with the Serbian equivalent of Y/N as an answer. The problem is that I have to switch keyboard layouts, type Д, and switch back to English layout being as that I'll most likely continue using the terminal.

So the question is: can I make Pacman (and Yaourt) ignore the locale settings somehow?

Thanks.

Last edited by Deusdies (2011-12-20 15:30:33)


My website - http://www.LinuxDistroReview.com - reviews all the linux distros out there

Here's the Arch Linux review: http://www.linuxdistroreview.com/arch-linux

Offline

#2 2011-12-20 02:11:19

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,416
Website

Re: [SOLVED] Any way to make Yaourt/Pacman ignore locale settings?

LANG=C pacman -Syu

You could even set up an alias for that...

Offline

#3 2011-12-20 02:27:21

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 753

Re: [SOLVED] Any way to make Yaourt/Pacman ignore locale settings?

Nastaviti sa instalacijom? [D/n] 
Наставити са инсталацијом? [Д/н] 
Proceed with installation? [Y/n]

Default answer is "Yes", so you can just hit Enter key.
Also, default answer in all other cases is usually the best one.

Other than that, I would also recomend an alias... or a better key sequence to change layout. smile

Offline

#4 2011-12-20 02:28:23

Deusdies
Member
Registered: 2010-09-13
Posts: 116

Re: [SOLVED] Any way to make Yaourt/Pacman ignore locale settings?

Thanks, this worked - at least to an extent.

How would I go about creating an alias so that when I type pacman -Syu I actually get LANG=C pacman -Syu?


My website - http://www.LinuxDistroReview.com - reviews all the linux distros out there

Here's the Arch Linux review: http://www.linuxdistroreview.com/arch-linux

Offline

#5 2011-12-20 02:29:42

Deusdies
Member
Registered: 2010-09-13
Posts: 116

Re: [SOLVED] Any way to make Yaourt/Pacman ignore locale settings?

Didn't realize "Da" was the default answer.

Also, how do you get the latin script?

Hvala puno i pozdrav wink

Xabre wrote:
Nastaviti sa instalacijom? [D/n] 
Наставити са инсталацијом? [Д/н] 
Proceed with installation? [Y/n]

Default answer is "Yes", so you can just hit Enter key.
Also, default answer in all other cases is usually the best one.

Other than that, I would also recomend an alias... or a better key sequence to change layout. smile


My website - http://www.LinuxDistroReview.com - reviews all the linux distros out there

Here's the Arch Linux review: http://www.linuxdistroreview.com/arch-linux

Offline

#6 2011-12-20 02:31:39

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 753

Re: [SOLVED] Any way to make Yaourt/Pacman ignore locale settings?

Deusdies wrote:

Also, how do you get the latin script?

$  locale
LANG=sr_RS.UTF-8@latin
LC_CTYPE="sr_RS.UTF-8@latin"
LC_NUMERIC="sr_RS.UTF-8@latin"
LC_TIME="sr_RS.UTF-8@latin"
LC_COLLATE="sr_RS.UTF-8@latin"
LC_MONETARY="sr_RS.UTF-8@latin"
LC_MESSAGES="sr_RS.UTF-8@latin"
LC_PAPER="sr_RS.UTF-8@latin"
LC_NAME="sr_RS.UTF-8@latin"
LC_ADDRESS="sr_RS.UTF-8@latin"
LC_TELEPHONE="sr_RS.UTF-8@latin"
LC_MEASUREMENT="sr_RS.UTF-8@latin"
LC_IDENTIFICATION="sr_RS.UTF-8@latin"
LC_ALL=

Offline

#7 2011-12-20 02:33:14

Deusdies
Member
Registered: 2010-09-13
Posts: 116

Re: [SOLVED] Any way to make Yaourt/Pacman ignore locale settings?

Thanks a lot!


My website - http://www.LinuxDistroReview.com - reviews all the linux distros out there

Here's the Arch Linux review: http://www.linuxdistroreview.com/arch-linux

Offline

#8 2011-12-20 09:31:13

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Any way to make Yaourt/Pacman ignore locale settings?

Please remember to mark the thread as solved.

Offline

Board footer

Powered by FluxBB