Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
compilerconstruction
ssm
Commits
306ed35b
Commit
306ed35b
authored
Jun 04, 2014
by
Joost Rijneveld
Browse files
Added explicit 'Big Endian' to UTF-32
parent
e2fecdf9
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/nl/uu/cs/ssm/Machine.java
View file @
306ed35b
...
...
@@ -485,7 +485,7 @@ public class Machine
ByteBuffer
b
=
ByteBuffer
.
allocate
(
4
);
b
.
putInt
(
pop
());
try
{
messenger
.
println
(
""
+
new
String
(
b
.
array
(),
"UTF-32"
)
)
;
messenger
.
println
(
""
+
new
String
(
b
.
array
(),
"UTF-32
BE
"
)
)
;
}
catch
(
UnsupportedEncodingException
e
)
{
messenger
.
println
(
"Error: UTF-32 encoding missing."
);
}
...
...
src/nl/uu/cs/ssmui/SSMRunner.java
View file @
306ed35b
...
...
@@ -685,7 +685,7 @@ public class SSMRunner extends JFrame
}
byte
[]
b
=
{};
try
{
b
=
s
.
getBytes
(
"UTF-32"
);
b
=
s
.
getBytes
(
"UTF-32
BE
"
);
}
catch
(
UnsupportedEncodingException
e
)
{
println
(
"Error: UTF-32 encoding missing."
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment