Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Cortado
Commits
1aa1dcdf
Commit
1aa1dcdf
authored
Mar 15, 2010
by
ogg.k.ogg.k
Browse files
do not explicitely tell Java to use US-ASCII, as JDK 1.1 does not like it
parent
94f8b4b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/com/fluendo/jkate/Info.java
View file @
1aa1dcdf
...
...
@@ -126,8 +126,7 @@ public class Info {
for
(
buffer_characters
=
0
;
buffer_characters
<
16
;
++
buffer_characters
)
{
if
(
buffer16
[
buffer_characters
]
==
0
)
break
;
}
try
{
language
=
new
String
(
buffer16
,
0
,
buffer_characters
,
"US-ASCII"
);
}
catch
(
java
.
io
.
UnsupportedEncodingException
e
)
{
language
=
""
;
}
language
=
new
String
(
buffer16
,
0
,
buffer_characters
);
category
=
""
;
buffer_characters
=
0
;
...
...
@@ -137,8 +136,7 @@ public class Info {
for
(
buffer_characters
=
0
;
buffer_characters
<
16
;
++
buffer_characters
)
{
if
(
buffer16
[
buffer_characters
]
==
0
)
break
;
}
try
{
category
=
new
String
(
buffer16
,
0
,
buffer_characters
,
"US-ASCII"
);
}
catch
(
java
.
io
.
UnsupportedEncodingException
e
)
{
category
=
""
;
}
category
=
new
String
(
buffer16
,
0
,
buffer_characters
);
/* end of packet */
if
(
opb
.
read
(
1
)
!=
-
1
)
...
...
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