Bug 16687 - Apache should recognize UTF byte order mark (BOM) in cgi scripts
Summary: Apache should recognize UTF byte order mark (BOM) in cgi scripts
Status: CLOSED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_cgi (show other bugs)
Version: 2.0.43
Hardware: Other Windows XP
: P3 minor (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-03 03:05 UTC by James Kilfiger
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Kilfiger 2003-02-03 03:05:29 UTC
When saving a file as UTF-8 with Notepad under XP, notepad will insert a byte
order mark before the first character of the first line.
Apache then can't serve the script as it can't parse the magic first line, and
can't find perl (or whatever)

Workaround is not to save in UTF-8, or not to use Notepad, but apache should be
able to recognize byte order marks.

(related bug #11847, but that seems to be concered with xml)
Comment 1 André Malo 2003-06-01 17:46:35 UTC
This was fixed in HEAD (2.1 branch) some time ago.