##// END OF EJS Templates
patch: show lower-ed translated message correctly...
patch: show lower-ed translated message correctly Before this patch, patch.filterpatch() shows meaningless translation of help message for chunk selection in some encoding. It applies str.lower() instead of encoding.lower(str) on translated message, but some encoding uses 0x41(A) - 0x5a(Z) as the second or later byte of multi-byte character (for example, ja_JP.cp932), and str.lower() causes unexpected result. To show lower-ed translated message correctly, this patch replaces str.lower() by encoding.lower(str).

File last commit:

r28541:4b81487a default
r29154:9d38a206 stable
Show More
__init__.py
4 lines | 157 B | text/x-python | PythonLexer
Pierre-Yves David
extensions: also search for extension in the 'hgext3rd' package...
r28541 # name space package to host third party extensions
from __future__ import absolute_import
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)