Closed Bug 285236 Opened 20 years ago Closed 19 years ago

[Devmo] build incorrectly when source file include BOM

Categories

(developer.mozilla.org Graveyard :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: spam, Unassigned)

Details

Attachments

(3 files, 4 obsolete files)

now, Template-Toolkit brakes French source file that includes BOM. 
(created files seems Windows-1252 encoding.)
(now this happens only French but will also happen on other ASCII-alike languages.)

to avoid this, run the script that removes BOM before build, and Devmo tree will
be build correctly.
# this requires a directory that stores 'completely BOM-less' source tree.
# need to modify dest directive in ttree.cfg and need a replica of ttree.cfg for
this script.
Attached patch diff from ttree (obsolete) — Splinter Review
(line number may be different on another environment.)
Attachment #176703 - Flags: review?(fantasai.bugs)
I can't tell what file this thing is patching.

Also, the idea of creating an intermediary tree just to remove the BOM seems
like an expensive hack to me.
Summary: [Devmo] build incorrectly when source file include BOM → [Devmo] build incorrectly when source file include BOM
this script does below:
 generate listfle
 makes temporaly file, build, remove temporaly file
 remove temporaly directory
 remove listfile
Attachment #176703 - Attachment is obsolete: true
Attachment #176870 - Flags: review?(fantasai.bugs)
sorry, 176870 has wrong handling when processing top directory of source.
Attachment #176870 - Attachment is obsolete: true
Attachment #176879 - Flags: review?(fantasai.bugs)
don't create temp file if updated files has NO BOM.
1. generate listfle
2. ttree(same as default)
3. check update files whether file has BOM or not
4. if needed (makes temporaly file, build, remove temporaly file)
5. remove temporaly directory(if created above)
6. remove listfile
Attachment #176879 - Attachment is obsolete: true
Attachment #177131 - Flags: review?(fantasai.bugs)
Reporter, could you attach a file that has a BOM so that we can test out the
patch and troubleshoot the Template Toolkit?
Attached file sample UTF8 file with BOM (obsolete) —
The source file is UTF-8 with a BOM. After processing, Firefox auto-detects the
destination file as Windows 1252. Overriding it to UTF-8 (which is what happens
when we send it out with a UTF-8 charset header) causes the accented characters
to not show up correctly.
upload the right file...
Attachment #177652 - Attachment is obsolete: true
Component: webmaster@mozilla.org → developer.mozilla.org
Flags: review?(fantasai.bugs)
Changing QA contact to the default QA so interested parties can watch bugs filed
before the default QA was changed.  Only bugs in an unfixed state have been
changed; fixed bugs are unlikely to be reopened, and more bugspam is always a
bad thing.  Sorry for the bugspam - filter it into your Junk folder by searching
for 'WhyDoesMediaWikiHaveToBeEvilAndNotAcceptArbitraryCharactersInTitlesAndLinks'.
QA Contact: danielwang → qa
devmo has moved to wiki so this bug should be closed
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → WONTFIX
Component: developer.mozilla.org → Infrastructure
Product: mozilla.org → Mozilla Developer Center
QA Contact: qa → infrastructure
Version: other → unspecified
Component: Deki Infrastructure → Other
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: