Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
d8b6d4cf
Commit
d8b6d4cf
authored
Feb 03, 2000
by
Tom Tromey
Committed by
Tom Tromey
Feb 03, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* jcf-io.c (jcf_print_utf8_replace): Handle UTF-8 input.
From-SVN: r31779
parent
2c2f0e54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
gcc/java/ChangeLog
+4
-0
gcc/java/jcf-io.c
+9
-5
No files found.
gcc/java/ChangeLog
View file @
d8b6d4cf
2000-02-03 Tom Tromey <tromey@cygnus.com>
* jcf-io.c (jcf_print_utf8_replace): Handle UTF-8 input.
2000-01-31 Scott Bambrough <scottb@netwinder.org>
* gcc/java/javaop.h (WORDS_TO_DOUBLE): Allow WORDS_TO_DOUBLE to
...
...
gcc/java/jcf-io.c
View file @
d8b6d4cf
/* Utility routines for finding and reading Java(TM) .class files.
Copyright (C) 1996, 97-98, 1999 Free Software Foundation, Inc.
Copyright (C) 1996, 97-98, 1999
, 2000
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -505,11 +505,15 @@ DEFUN(jcf_print_utf8_replace, (stream, str, length, in_char, out_char),
FILE
*
stream
AND
const
unsigned
char
*
str
AND
int
length
AND
int
in_char
AND
int
out_char
)
{
int
i
;
/* FIXME - actually handle Unicode! */
for
(
i
=
0
;
i
<
length
;
i
++
)
const
unsigned
char
*
limit
=
str
+
length
;
while
(
str
<
limit
)
{
int
ch
=
str
[
i
];
int
ch
=
UTF8_GET
(
str
,
limit
);
if
(
ch
<
0
)
{
fprintf
(
stream
,
"
\\
<invalid>"
);
return
;
}
jcf_print_char
(
stream
,
ch
==
in_char
?
out_char
:
ch
);
}
}
...
...
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