Closed Bug 800329 Opened 12 years ago Closed 12 years ago

multiple locales don't build properly on win32, empty values break

Categories

(Firefox :: Installer, defect)

17 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla19
Tracking Status
firefox17 + fixed
firefox18 + fixed

People

(Reporter: bhearsum, Assigned: Pike)

Details

Attachments

(1 file)

We got the following error when trying to build it:
Traceback (most recent call last):
  File "e:/builds/moz2_slave/rel-m-beta-w32-rpk-4/mozilla-beta/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py", line 321, in <module>
    preprocess_locale_files(config_dir, l10n_dirs)
  File "e:/builds/moz2_slave/rel-m-beta-w32-rpk-4/mozilla-beta/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py", line 110, in preprocess_locale_files
    True)
  File "e:/builds/moz2_slave/rel-m-beta-w32-rpk-4/mozilla-beta/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py", line 48, in get_locale_strings
    if value[-1] == "\"" and value[0] == "\"":
IndexError: string index out of range
make[2]: *** [l10ngen/setup.exe] Error 1
make[1]: *** [repackage-win32-installer] Error 2
make: *** [repackage-win32-installer-km] Error 2
ok, this happens when a value is empty. This will affect more than just one locale, I assume (at least hy-AM is on my list of candidates, too).

I suggest we patch this in preprocess-locale.py, and make that bullet-proof.
Component: Localization → NSIS Installer
Product: Core → Toolkit
Version: unspecified → 17 Branch
This patch applies to mozilla-beta, we should back-port it to aurora and central.

Taking ted as reviewer, as he's reviewing code there before.
Assignee: nobody → l10n
Status: NEW → ASSIGNED
Attachment #670370 - Flags: review?(ted.mielczarek)
PS: This has been the case since the initial port of preprocess-locale from perl to python, but only recently got triggered by some locales having empty strings in the installer .properties files.

Notably, that's in narro exports, AFAICT.

Either way, we should make the python script bullet proof, IMHO.
Summary: km didn't build properly for Firefox 17.0b1 win32 → multiple locales donn't build properly on win32, empty values break
Attachment #670370 - Flags: review?(ted.mielczarek) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/057589f16a3a
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
Comment on attachment 670370 [details] [diff] [review]
check for value before checking its contents

[Triage Comment]
We need this on Beta and Aurora too - Axel's away can someone check this in today please so it's in tomorrow's Beta build?
Attachment #670370 - Flags: approval-mozilla-beta+
Attachment #670370 - Flags: approval-mozilla-aurora+
(Still c-n for aurora)
Keywords: checkin-needed
Summary: multiple locales donn't build properly on win32, empty values break → multiple locales don't build properly on win32, empty values break
Component: NSIS Installer → Installer
Product: Toolkit → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: