FS#6529 - [srcpac] doesnt' support pacman 3.0 languages

Attached to Project: Pacman
Opened by Julien MISCHKOWITZ (wain) - Monday, 05 March 2007, 15:17 GMT
Last edited by Allan McRae (Allan) - Saturday, 06 March 2010, 05:43 GMT
Task Type Bug Report
Category Scripts & Tools
Status Closed
Assigned To Dan McGee (toofishes)
Andrea Scarpino (BaSh)
Architecture All
Severity Low
Priority Normal
Reported Version 3.0.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

srcpac doesn't work with new pacman 3 language support.
This task depends upon

Closed by  Allan McRae (Allan)
Saturday, 06 March 2010, 05:43 GMT
Reason for closing:  Not a bug
Comment by Andrew Fyfe (space-m0nkey) - Friday, 13 April 2007, 16:51 GMT
Could you be more specific please. Do you mean srcpac doesn't print messages in your locale? or do you mean pacman printing out localized messages is breaking srcpac?
Comment by Julien MISCHKOWITZ (wain) - Friday, 13 April 2007, 22:34 GMT
example:
line 360:
echo -n "Proceed with upgrade? [Y/n] "

srcpac is waiting for Y/n in english, but pacman is waiting for O/N (oui/non) in french
Comment by Roman Kyrylych (Romashka) - Friday, 13 April 2007, 22:43 GMT
This can be fixed in srcpac only by adding gettext support to it, I guess.

I want to notice that in Russian translation, for example, pacman waits for Y/n
e.g. Y/n was intentionally not translated to not force users to switch keyboard layouts just for answering to question (except default answer).
Comment by Andrew Fyfe (space-m0nkey) - Friday, 13 April 2007, 22:51 GMT
Short term hack would be to pass LC_ALL|LANG=C to pacman inside srcpac.
Comment by Dan McGee (toofishes) - Friday, 13 April 2007, 22:56 GMT
Better solution should come eventually. srcpac needs a decent rewrite of some parts to deal with the switch to both pacman and makepkg 3. I should get around to doing this soon and submit some changes upstream. This will hopefully resolve all srcpac bugs currently listed in Flyspray.
Comment by Andrea Scarpino (BaSh) - Wednesday, 25 November 2009, 01:41 GMT
Wait, I don't see any bug here.
srcpac does the question and it waits for Y or N. Not pacman.
Comment by Allan McRae (Allan) - Saturday, 06 March 2010, 05:42 GMT
I checked to code and indeed srcpac does its own parsing of Y/n and not makepkg/pacman. Closing as "not a bug" given there is not response from submitter to clarify.

Loading...