You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-text/calibre/files/calibre-1.34-C-locale.patch

12 lines
426 B

--- a/src/calibre/spell/dictionary.py 2014-05-01 11:38:04.051290252 -0400
+++ b/src/calibre/spell/dictionary.py 2014-05-01 11:37:55.061290088 -0400
@@ -52,7 +52,7 @@
raw = raw or ''
parts = raw.replace('_', '-').split('-')
lc = canonicalize_lang(parts[0])
- if lc is None:
+ if lc is None and raw != 'C':
raise ValueError('Invalid language code: %r' % raw)
cc = None
if len(parts) > 1: