Closed Bug 31054 Opened 25 years ago Closed 25 years ago

'TEXT' file which contains non ASCII does not open correctly.

Categories

(Core :: Internationalization, defect, P3)

PowerPC
Mac System 9.x
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: teruko, Assigned: davidm)

References

Details

(Keywords: relnote, Whiteboard: [PDT-])

When you open the local Japanese text and html file from Browesr, the error dialog displays. Then, you cannot see the html and text file from Brower. Steps of reproduce 1. Create Japanese text file from other applications, such as simpletext editor or create Japanese html file from Communicator 4.x 2. Launch Netscape 3. Select menu File|Open File... specify the file name which you created in step #1 Actual Result The error dialog "Unknown File Type" shows up. You cannot see the Japanese file from Browser. Expected result You should see the Japanese text file from Browser. Bug 23744 is fixed. Now Browser can open the local file, English content and English file name. I tested the following. English html and text file name but content is Japanese. Browser does not open Japanese html and text file name and content is Japanese. Browser does not open. Tested 2000030809 Mac build.
Because of this bug, I cannot verify the bug 23749 (PDT+). I put the beta1.
Keywords: beta1
teruko's file name do not have file extension in it. All the file name do not have '.txt' or '.html' in it. If we add .txt and .html, then it work ok. It looks like Mac only listen to the file extension to decide the content-type but didn't listen to the Mac FILE type to decide the content-type . However, there are some code after it try to sniff the data and decide to use text type if there are only 7-bit data. That is way the ASCII only file work. The real problem is we should fix the content type mapper to listen to Mac File type 'TEXT'
reassign to warren I chat with valenski, we think we probably should put some code in the file transport protocol handler to read those info just as how we read last modified date for Mac...
Assignee: ftang → warren
I have had this discussion with different people several times. We should not have code that does content typing based on extensions except perhaps as a method of last resort. That is a platform specific method of typing files and has no place in xp code. The file should be asked for it's type so that different platforms can do the right thing.
Change the name to "'TEXT' file which contains non ASCII does not open correctly."
Summary: Cannot open non-ASCII local file on mac → 'TEXT' file which contains non ASCII does not open correctly.
Putting on PDT- radar for beta1. Will relnote
Keywords: relnote
Whiteboard: [PDT-]
David, Can you deal with this one? Jud wrote the initial mime-type mapping stuff, but he's not a mac guy, so I think it would be better if you handled it.
Assignee: warren → davidm
Target Milestone: M15
Marking beta2.
Keywords: beta2
*** Bug 31090 has been marked as a duplicate of this bug. ***
fix checked in.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
I verified this in 2000041109 Mac build.
Status: RESOLVED → VERIFIED
Keywords: nsbeta2
OS: Mac System 9.x
You need to log in before you can comment on or make changes to this bug.