Bug 248667

Summary: [ja] python backtrace for timezone '(' format substitution
Product: [Fedora] Fedora Reporter: Jens Petersen <petersen>
Component: system-config-dateAssignee: Nils Philippsen <nphilipp>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: medium    
Version: rawhideCC: eng-i18n-bugs
Target Milestone: ---Keywords: i18n
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-07-23 03:54:34 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 235703    
Description Flags
system-config-date-1.9.1-ja.po-missing-s.patch.gz none

Description Jens Petersen 2007-07-17 22:09:54 EDT
Description of problem:
system-config-date is giving a python backtrace from the timezone
code when run in ja_JP.UTF-8.

Version-Release number of selected component (if applicable):

How reproducible:
every time

Steps to Reproduce:
1. Japanese anaconda install 
2. LANG=ja_JP.UTF-8 system-config-date
Actual results:
1. anaconda backtrace:
Traceback (most recent call first):
  File "/usr/share/system-config-date/timezone_map_gui.py", line 275, in
    labelText = _('Selected city: %(city)s (%(comments)s)') % {'city':
self.cityname_format (self.currentEntry.tz), 'comments':
  File "/usr/share/system-config-date/timezone_map_gui.py", line 582, in setCurrent
    self.currentCityLabel_set ()
  File "/usr/share/system-config-date/timezone_map_gui.py", line 333, in __init__
    self.setCurrent (zonetab.findEntryByTZ (default))
  File "/usr/lib/anaconda/iw/timezone_gui.py", line 77, in timezone_widget_create
  File "/usr/lib/anaconda/iw/timezone_gui.py", line 63, in custom_widget_handler
    return handler(str1, str2, int1, int2)
ValueError: unsupported format character '(' (0x28) at index 28

2. similar backtrace

Expected results:
no errors

Additional info:
Only seems to happen for Japanese - so looks like a translation issue.
(tested ko, zh and hi too)
Comment 1 Jens Petersen 2007-07-17 22:12:06 EDT
Created attachment 159489 [details]

This patch to ja.po seems to fix the problem.
Comment 2 Jens Petersen 2007-07-17 22:25:36 EDT
Created attachment 159490 [details]

replaced with uncorrupted version of patch
Comment 3 Jens Petersen 2007-07-17 22:52:52 EDT
Created attachment 159491 [details]

take 3
Comment 4 Jens Petersen 2007-07-22 20:48:31 EDT
Any chance of fixing this in time for Test1?
Comment 5 Nils Philippsen 2007-07-23 03:54:34 EDT
fixed in system-config-date-1.9.2 which is building right now