Bug 9501 - Windows build fails with link error CharsetTable not defined
Summary: Windows build fails with link error CharsetTable not defined
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 420+
Hardware: PC Windows XP
: P1 Blocker
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-18 23:58 PDT by Ben Goodger
Modified: 2006-06-19 20:15 PDT (History)
2 users (show)

See Also:


Attachments
patch (1.81 KB, patch)
2006-06-19 00:02 PDT, Ben Goodger
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Goodger 2006-06-18 23:58:00 PDT
Windows builds fail with a link error: CharsetTable is not defined. 

WebCore/DerivedSources/CharsetData.cpp exists, but is empty. In the build log there is a report that a script failed whilst running. It seems that the script that generates this file - make-charset-table.pl - is having difficulty. 

make-charset-table.pl does not properly normalize alias names in subroutine process_iana_charsets. character-sets.txt has some Alias: lines that have escape characters on the end that are not properly chomped, meaning that in more than one case the statement:

next if $new_alias eq "None";

does not work. 

This needs to be moved after the normalization steps and adjusted to:

next if $new_alias eq "none";
Comment 1 Ben Goodger 2006-06-19 00:02:37 PDT
Created attachment 8918 [details]
patch

move test for equality to "none" to after normalization steps. 

ChangeLog entry:

* platform/make-charset-table.pl:
(process_iana_charsets):
Move test for equality to alias "None" until after normalization steps
to ensure escape characters in the input data don't interfere with 
processing.
Convert nearby tabs to 4 spaces in this function.
Comment 2 Darin Adler 2006-06-19 11:31:42 PDT
Comment on attachment 8918 [details]
patch

This looks fine -- but I'm working on a patch that eliminates the character set table entirely!
Comment 3 Darin Adler 2006-06-19 13:26:51 PDT
Comment on attachment 8918 [details]
patch

Seems fine to land this, but even better to remove this script entirely!

r=me
Comment 4 David Kilzer (:ddkilzer) 2006-06-19 20:15:03 PDT
Committed revision 14919.