Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 21 - Ming doesn't handle charsets correctly #29

Open
netsweng opened this issue Aug 18, 2013 · 6 comments
Open

Bug 21 - Ming doesn't handle charsets correctly #29

netsweng opened this issue Aug 18, 2013 · 6 comments

Comments

@netsweng
Copy link
Member

Benjamin Otte 2007-06-06 09:09:19 EDT

I checked this for script code (Push action), but it's probably relevant to all
contents of Flash files:

Strings in Flash < 6 seem to be encoded as Latin-1. In Flash >= 6 strings are
probably encoded as UTF-8.

Ming always writes UTF-8 when creating Flash files. It would be nice if it did
something sane for Flash < 6.

@netsweng
Copy link
Member Author

Klaus Rechert 2007-07-10 17:11:18 EDT

i can not find a place within actioncompiler code where a
utf8-check/conversion/.. happens. ming takes a char * from the parser and
writes strlen() bytes from this pointer.
could you provide a simple example please ?

@netsweng
Copy link
Member Author

Benjamin Otte 2007-07-11 02:17:11 EDT

Easiest example is with makeswf, but you can of course get the same effect with
every C function that takes a string. Just create input that is not pure ASCII,
like this:
trace ("München");
Then compile it once for version 5 and for version 6 and look at the produced
output.

Apart from actionscript, other examples are SWFDisplayItem_setName and
SWFMovie_addExport.

@netsweng
Copy link
Member Author

Klaus Rechert 2007-07-16 08:40:50 EDT

Bug is verfied. But will not be fixed before the next release:

First generating SWF >= 6 should be default and second such bugs can only be
fixed if movie versioning is completed.

@netsweng
Copy link
Member Author

strk@keybit.net 2010-05-21 05:37:28 EDT

Also, when producing the ref myself I see a single KerningCount:0
Is this a bug with listswf or ?

@netsweng
Copy link
Member Author

strk@keybit.net 2010-05-21 05:41:00 EDT

(In reply to comment #4)

Also, when producing the ref myself I see a single KerningCount:0
Is this a bug with listswf or ?

Sorry, wrong bug , this was meant for #95

@netsweng
Copy link
Member Author

strk@keybit.net 2010-11-16 05:18:18 EST

Is this still an issue ?
Is benjamin suggesting we recode from UTF-8 to Latin1 when saving to SWF<6 ?
(I wouldn't go there really... as how do you know if input is UTF-8 or latin1
already ?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant