Closed Bug 318403 Opened 19 years ago Closed 19 years ago

profile not found on non-English Windows

Categories

(Webtools Graveyard :: Tinderbox, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kairo, Assigned: kairo)

Details

Attachments

(1 file)

On a non-English Windows, the profile does not reside in "Application Data" but a directory with a localized name.
Contrary to that, the block starting in http://lxr.mozilla.org/mozilla/source/tools/tinderbox/build-seamonkey-util.pl#1110 hardcodes us to use "Application Data" (lines 1113 and 1117).
Lines 1116-1120 are especially interesting, as I fail to see why we are not using %APPDATA% all the time - and it also works well with localized Windows versions.

I have tpol (on the Mozilla1.8-SeaMonkey tree) running on a German WinXP, and it only made it throught the tests correctly once I forced it to use %APPADATA% instead of the construct in line 1117 (I did that by adding a -d check for the english-named dir to line 1116, but from what others tell me, I come to think defaulting to %APPDIR% would be better)
This patch makes us work also on localized NT-based OSes, as it reverses the logic to first try %APPDATA% and only use %USERPROFILE% with hardcoded "Application Data" subdirectory as a fallback solution.
Assignee: mcafee → kairo
Status: NEW → ASSIGNED
Attachment #205741 - Flags: review?(chase)
Attachment #205741 - Flags: review?(chase) → review+
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: