Closed
Bug 228437
Opened 21 years ago
Closed 19 years ago
characters in the file name that not in the system charset are replaced by underscores when selecting a file using the file picker (upload control)
Categories
(Core Graveyard :: File Handling, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: henrik.pauli, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6a) Gecko/20031106 Firebird/0.7+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6a) Gecko/20031106 Firebird/0.7+
I was downloading ASCII-named files from [URL], such as a1.wav, a2.wav and so
on. I have created a folder named 한글 to save them and when I saw in my file
manager (Total Commander, which currently not-very-well supports Unicode (also,
sorry for the plug)) there was a 한글 and a __ directory, I thought it was a
problem in my file manager. The files were in directory __. Then I renamed my
files inside that direcory with TC, from aforementioned a*.wav to things in
Hangeul, and those were okay. The problem of getting underscores instead of
Hangeul appeared again when I tried to rename the files before even saving them,
with the help of the Windows's save file dialog, and I was surprised to see
there are _'s again.
I have come to the conclusion there is some bug in Mozilla's or at least in my
Firebird build's Unicode support.
Reproducible: Always
Steps to Reproduce:
Updated•21 years ago
|
Summary: Saving Hangeul Filenames Produce Unexpected Result → Saving replaces Hangeul characters with underscores in filenames
Comment 1•21 years ago
|
||
Can you please try to reproduce this problem in both Firefox 0.8 and Mozilla 1.6
and let us know your results?
Firefox: http://www.mozilla.org/products/firefox/
Mozilla: http://www.mozilla.org/products/mozilla1.x/
QA Contact: aebrahim
Comment 2•21 years ago
|
||
I can reproduce this bug on Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8a) Gecko/20040427.
Moving over to Browser | File Handling.
Assignee: bugs → file-handling
Component: Downloading → File Handling
Product: Firefox → Browser
QA Contact: aebrahim → ian
Version: unspecified → Trunk
Comment 3•21 years ago
|
||
I am running into the same (or very similar) issue trying to get ChatZilla's DCC
working properly with International filenames. I open the file picker, pick a
file with Unicode characters (in my case Japanese Hiragana characters), click
Open, and the nsILocalFile object returned shows underscores in place of the
Hiragana. Trying to open the file throws NS_ERROR_FILE_NOT_FOUND, as it tried to
open "W:\chatzilla\____ ____.txt" instead of what the file is actually called.
I think bug 234946 is kinda the "issue", but it's not exactly /descriptive/ of
the problem. Bug 162361 might also be related.
Comment 4•21 years ago
|
||
http://lxr.mozilla.org/mozilla/source/xpcom/io/nsNativeCharsetUtils.cpp#897
looks "suspicious".
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Saving replaces Hangeul characters with underscores in filenames → File picker replaces Hangeul/Hiragana characters with underscores in filenames
Comment 5•21 years ago
|
||
I think it's not just Hangeul/Hiragana characters. I actually tested with Arabic
characters and I also got the same underscores. I imagine the problem is not
restricted to a specific portion of the Unicode character space.
Comment 6•21 years ago
|
||
mozilla can not currently deal with filenames outside the system charset on windows.
(and it can only ever deal with them on win nt/2k/xp)
Comment 7•20 years ago
|
||
*** Bug 246747 has been marked as a duplicate of this bug. ***
Comment 8•20 years ago
|
||
*** Bug 249538 has been marked as a duplicate of this bug. ***
Updated•19 years ago
|
Summary: File picker replaces Hangeul/Hiragana characters with underscores in filenames → characters in the file name that not in the system charset are replaced by underscores when selecting a file using the file picker (upload control)
Comment 9•19 years ago
|
||
*** Bug 320682 has been marked as a duplicate of this bug. ***
Comment 10•19 years ago
|
||
*** Bug 330562 has been marked as a duplicate of this bug. ***
Comment 11•19 years ago
|
||
Depends on: 278161
Comment 12•19 years ago
|
||
thanks to patches for bug 162361 and bug 278161, this bug is now fixed.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 13•18 years ago
|
||
*** Bug 345722 has been marked as a duplicate of this bug. ***
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•