Closed Bug 252223 Opened 20 years ago Closed 8 years ago

Profile stored in the wrong directory due to improper character conversion

Categories

(Core Graveyard :: Profile: BackEnd, defect)

x86
Windows Server 2003
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: megabyte, Unassigned)

Details

(Keywords: intl)

My computer name is ALT+0160, the no-break space.  This is a reinstall, so
Windows named my profile directory "Administrator. "  The Firefox profile data
is thus located at "C:\Documents and Settings\Administrator. \Application
Data\Firefox"  However, my Firefox cache is located under "C:\Documents and
Settings\ADMINISTRATOR. \APPLICATION DATA\Firefox" instead.  The  looks like
some artifact of bad Unicode conversion.
What's your default system locale? Log-on as a user with the admin. privilige
(or you can run 'region and language setting' as that user by clicking it with
the right-mouse button and choosing 'run as') and select 'Advanced tab'. See
what's the value for 'Lanugage for non-unicode programs'. 

English (United States)
Are any other files besides the "Cache" directory and its contents located under
"C:\Documents and
Settings\ADMINISTRATOR. \APPLICATION DATA\Firefox"?

Are the rest of Firefox's profile files located under "C:\Documents and
Settings\Administrator. \Application
Data\Firefox"?
U+00A0 (NBSP) in UTF-8 is '0xc2 0xa0' which represents 'Latin Capital letter A
with circumflex' followed by 'NBSP' when interpreted as Windows-1252(or
ISO-8859-1). So, somewhere UTF16 to UTF8 conversion is used where UTF16 to
Windows-1252 (the native system encoding) should be used. 

Yes, all of the other profile files are there, and I just realized that the
files in my non  directory haven't been updated in a month... I guess this
means the problem is somewhere higher up than the cache.  I'll backup my profile
and wipe everything to see if it still happens.
Assignee: darin → nobody
Component: Networking: Cache → Profile: BackEnd
QA Contact: core.networking.cache → core.profile-manager-backend
Summary: Cache stored in the wrong directory due to improper character interpretation → Profile stored in the wrong directory due to improper character conversion
Adding some people to CC. Do you have a similar problem with a non-ASCII user
name or a non-ASCII machine name? 

> This is a reinstall, so Windows named my profile directory 
> "Administrator.<nbsp>" (I'm using '<nbsp>' in place of an actual NBSP) 

Does Windows always name the profile directory 'username' followed by '.' and
the machine name if 'C:\Documents and Settings\username' already exists? 
Keywords: intl
I cannot reproduce with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7)
Gecko/20040728 Firefox/0.9.1+

I tested user name is 'Administrator.テスト'.

Aaron:
What do you use the version of firefox?
Bug 84384 is related.

Prog.
(In reply to comment #8)
> Bug 84384 is related.

No, it's not. Note that U+00A0 is covered by the repoter's locale encoding
(Windows-1252). Can anybody answer my question (the bottom half) in comment #6? 
(In reply to comment #6)
> Does Windows always name the profile directory 'username' followed by '.' and
> the machine name if 'C:\Documents and Settings\username' already exists?

rs, do you know any reason why it wouldn't?
iirc and it has been awhile Windows will append machine or domain name for a domain account to the name if it exists already locally along with three digits starting with 000.
This bug is filed in a bugzilla component related to pre-Firefox code which no longer exists. I believe it is no longer relevant and I am therefore closing it INCOMPLETE.

If you believe that this bug is still valid and needs to be fixed, please reopen it and move it to the Toolkit:Startup and Profile System product/component.
No longer blocks: 1243899
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.