Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8.2, 0.8.3, and 0.9

stable i18n: fallback gracefully when unable to encode console output

Fixes #471

Changeset 546ebe206fcb

Parent 1113a4a050f7

by Steve Borho

Changes to one file · Browse files at 546ebe206fcb Showing diff from parent 1113a4a050f7 Diff from another changeset...

Change 1 of 1 Show Entire File thgutil/​i18n.py Stacked
 
22
23
24
25
 
26
27
 
22
23
24
 
25
26
27
@@ -22,6 +22,6 @@
  try:   u = _(message)   return hglib.fromutf(u) - except LookupError: + except (LookupError, UnicodeEncodeError):   return message