[fusion-trac] #255: Build.xml needs to specify encoding for call to
YUICompressor
Fusion
trac_fusion at osgeo.org
Mon May 11 17:37:07 EDT 2009
#255: Build.xml needs to specify encoding for call to YUICompressor
----------------------------+-----------------------------------------------
Reporter: tomfukushima | Owner: madair
Type: defect | Status: new
Priority: P1 | Milestone: Future
Component: Core | Version: 1.1.1
Severity: Major | Keywords:
External_id: | State: New
Browser: All | Os: All
----------------------------+-----------------------------------------------
YUICompressor is used to generate the compressed .js file. It needs to
specify the char encoding of UTF-8 otherwise it will default to the host
computers default encoding.
To see the problem, search for "!SelectionPanel" in the resultant
fusionSF-compressed.js file. The second occurrence of this will have a
corrupt French string. Applying the attached patch will fix the problem.
All I did was add the charset argument and specified UTF-8; I don't know
ant so I don't know if what I did was correct or not, but when I ran it,
the compressed file looked good.
The patch file changes the charset in two other places where YUICompressor
is used; I'm not sure if these two other places should have the change or
not.
--
Ticket URL: <http://trac.osgeo.org/fusion/ticket/255>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.
More information about the fusion-trac
mailing list