Merge lp:~anthonywong/command-not-found/lp1029204 into lp:~command-not-found-developers/command-not-found/trunk

Proposed by Anthony Wong
Status: Merged
Approved by: Zygmunt Krynicki
Approved revision: 156
Merged at revision: 156
Proposed branch: lp:~anthonywong/command-not-found/lp1029204
Merge into: lp:~command-not-found-developers/command-not-found/trunk
Diff against target: 15 lines (+4/-1)
1 file modified
command-not-found (+4/-1)
To merge this branch: bzr merge lp:~anthonywong/command-not-found/lp1029204
Reviewer Review Type Date Requested Status
Zygmunt Krynicki Approve
Review via email: mp+193735@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Looks good to me

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'command-not-found'
2--- command-not-found 2012-06-13 15:01:24 +0000
3+++ command-not-found 2013-11-04 07:33:28 +0000
4@@ -26,7 +26,10 @@
5 if sys.version < '3':
6 kwargs["unicode"] = True
7 cnf.install(**kwargs)
8- locale.setlocale(locale.LC_ALL, '')
9+ try:
10+ locale.setlocale(locale.LC_ALL, '')
11+ except locale.Error:
12+ locale.setlocale(locale.LC_ALL, 'C')
13
14
15 def fix_sys_argv(encoding=None):

Subscribers

People subscribed via source and target branches