| CODENOTIFIER | HelpYou are not signed inSign in |
Project: Editra
Revision: 56071
Author: CJP
Date: 03 Oct 2008 19:15:20
Changes:Fix bug with getting encoding from profile in Preferences dialog
Files:| ... | ...@@ -529,8 +529,14 @@ | |
| 529 | 529 | |
| 530 | 530 | # Encoding options |
| 531 | 531 | d_encoding = Profile_Get('ENCODING', |
| 532 | default=locale.getpreferredencoding()) | |
| 532 | 'str', | |
| 533 | default=locale.getpreferredencoding()) | |
| 534 | if d_encoding is None: | |
| 535 | d_encoding = 'utf-8' | |
| 536 | Profile_Set('ENCODING', d_encoding) | |
| 537 | ||
| 533 | 538 | d_encoding = encodings.normalize_encoding(d_encoding) |
| 539 | ||
| 534 | 540 | enc_ch = ExChoice(self, ed_glob.ID_PREF_ENCODING, |
| 535 | 541 | choices=util.GetAllEncodings(), |
| 536 | 542 | default=d_encoding) |
| ... | ...@@ -19,7 +19,7 @@ | |
| 19 | 19 | +Automatically expire status bar info messages after 10 seconds |
| 20 | 20 | |
| 21 | 21 | BUG FIXES: |
| 22 | ||
| 22 | +Fix case where encoding can be None in when initializing the preference dialog | |
| 23 | 23 | |
| 24 | 24 | #-----------------------------------------------------------------------------# |
| 25 | 25 |