Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
36ce9d02
Commit
36ce9d02
authored
Aug 03, 2013
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue running dot on files with non-ascii characters
parent
f8a55e01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
dot.cpp
src/dot.cpp
+7
-6
No files found.
src/dot.cpp
View file @
36ce9d02
...
...
@@ -665,7 +665,7 @@ static void checkDotResult(const QCString &imgName)
{
if
(
Config_getEnum
(
"DOT_IMAGE_FORMAT"
)
==
"png"
)
{
FILE
*
f
=
fopen
(
imgName
,
"rb"
);
FILE
*
f
=
portable_
fopen
(
imgName
,
"rb"
);
if
(
f
)
{
char
data
[
4
];
...
...
@@ -961,24 +961,25 @@ bool DotFilePatcher::run()
//printf("DotFilePatcher::addSVGConversion: file=%s zoomable=%d\n",
// m_patchFile.data(),map->zoomable);
}
QCString
tmpName
=
m_patchFile
+
".tmp"
;
if
(
!
QDir
::
current
().
rename
(
m_patchFile
,
tmpName
))
QString
tmpName
=
QString
::
fromUtf8
(
m_patchFile
+
".tmp"
);
QString
patchFile
=
QString
::
fromUtf8
(
m_patchFile
);
if
(
!
QDir
::
current
().
rename
(
patchFile
,
tmpName
))
{
err
(
"Failed to rename file %s to %s!
\n
"
,
m_patchFile
.
data
(),
tmpName
.
data
());
return
FALSE
;
}
QFile
fi
(
tmpName
);
QFile
fo
(
m_
patchFile
);
QFile
fo
(
patchFile
);
if
(
!
fi
.
open
(
IO_ReadOnly
))
{
err
(
"problem opening file %s for patching!
\n
"
,
tmpName
.
data
());
QDir
::
current
().
rename
(
tmpName
,
m_
patchFile
);
QDir
::
current
().
rename
(
tmpName
,
patchFile
);
return
FALSE
;
}
if
(
!
fo
.
open
(
IO_WriteOnly
))
{
err
(
"problem opening file %s for patching!
\n
"
,
m_patchFile
.
data
());
QDir
::
current
().
rename
(
tmpName
,
m_
patchFile
);
QDir
::
current
().
rename
(
tmpName
,
patchFile
);
return
FALSE
;
}
FTextStream
t
(
&
fo
);
...
...
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