Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
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
lifo
Nicolas Ollinger
OpenBoard
Commits
59ff0075
Commit
59ff0075
authored
Jul 21, 2011
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unset the codec for c string conversion. The system one is used instead
parent
2025c86a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
main.cpp
src/core/main.cpp
+10
-4
No files found.
src/core/main.cpp
View file @
59ff0075
...
@@ -74,8 +74,14 @@ int main(int argc, char *argv[])
...
@@ -74,8 +74,14 @@ int main(int argc, char *argv[])
UBApplication
app
(
"Sankore 3.1"
,
argc
,
argv
);
UBApplication
app
(
"Sankore 3.1"
,
argc
,
argv
);
//BUGFIX:
//when importing a sankore file that contains a non standard character
//the codecForLocale or the codecForCString is used to convert the file path
//into a const char*. This is why in french windows setup the codec name shouldn't be
//set to UTF-8. For example, setting UTF-8, will convert "Hati" into "Ha-ti.
QTextCodec
::
setCodecForTr
(
QTextCodec
::
codecForName
(
"UTF-8"
));
QTextCodec
::
setCodecForTr
(
QTextCodec
::
codecForName
(
"UTF-8"
));
QTextCodec
::
setCodecForLocale
(
QTextCodec
::
codecForName
(
"UTF-8"
));
//
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
QTextCodec
::
setCodecForCStrings
(
QTextCodec
::
codecForName
(
"UTF-8"
));
QTextCodec
::
setCodecForCStrings
(
QTextCodec
::
codecForName
(
"UTF-8"
));
QStringList
args
=
app
.
arguments
();
QStringList
args
=
app
.
arguments
();
...
...
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