Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2021-11-19 08:28:25 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
28431d548ce3d48f06155a44100817865072a174
28431d54
1 parent
579f0ff2
Fix Windows string encoding
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
printing/CHANGELOG.md
printing/pubspec.yaml
printing/windows/print_job.cpp
printing/CHANGELOG.md
View file @
28431d5
...
...
@@ -2,6 +2,10 @@
## 5.6.2
-
Fix Windows string encoding
## 5.6.2
-
Update Linux and Windows pdfium libraries to 4706
-
Remove extra scroll bars on desktop
[
Jonathan Salmon
]
...
...
printing/pubspec.yaml
View file @
28431d5
...
...
@@ -6,7 +6,7 @@ description: >
homepage
:
https://github.com/DavBfr/dart_pdf/tree/master/printing
repository
:
https://github.com/DavBfr/dart_pdf
issue_tracker
:
https://github.com/DavBfr/dart_pdf/issues
version
:
5.6.
2
version
:
5.6.
3
environment
:
sdk
:
"
>=2.12.0
<3.0.0"
...
...
printing/windows/print_job.cpp
View file @
28431d5
...
...
@@ -56,7 +56,7 @@ std::string toUtf8(TCHAR* tstr) {
}
std
::
wstring
fromUtf8
(
std
::
string
str
)
{
auto
len
=
MultiByteToWideChar
(
CP_
ACP
,
0
,
str
.
c_str
(),
auto
len
=
MultiByteToWideChar
(
CP_
UTF8
,
0
,
str
.
c_str
(),
static_cast
<
int
>
(
str
.
length
()),
nullptr
,
0
);
if
(
len
<=
0
)
{
return
false
;
...
...
@@ -64,7 +64,7 @@ std::wstring fromUtf8(std::string str) {
auto
wstr
=
std
::
wstring
{};
wstr
.
resize
(
len
);
MultiByteToWideChar
(
CP_
ACP
,
0
,
str
.
c_str
(),
static_cast
<
int
>
(
str
.
length
()),
MultiByteToWideChar
(
CP_
UTF8
,
0
,
str
.
c_str
(),
static_cast
<
int
>
(
str
.
length
()),
&
wstr
[
0
],
len
);
return
wstr
;
...
...
Please
register
or
login
to post a comment