mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 23:47:51 +01:00
use UTF8 encoding for section names
This commit is contained in:
parent
b5d4825b56
commit
33c1b028b5
@ -153,7 +153,7 @@ class WasmOutputStream extends FilterOutputStream {
|
|||||||
writeVaruint32( type.ordinal() );
|
writeVaruint32( type.ordinal() );
|
||||||
writeVaruint32( size );
|
writeVaruint32( size );
|
||||||
if( type == SectionType.Custom ) {
|
if( type == SectionType.Custom ) {
|
||||||
byte[] bytes = name.getBytes( StandardCharsets.ISO_8859_1 );
|
byte[] bytes = name.getBytes( StandardCharsets.UTF_8 );
|
||||||
writeVaruint32( bytes.length );
|
writeVaruint32( bytes.length );
|
||||||
write( bytes );
|
write( bytes );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user