Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
487a4b4e
Commit
487a4b4e
authored
9 years ago
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wb and xtt bugfix for non ISO8859-1 chars
parent
e4059625
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
wb/lib/wb/gtk/wb_wtt_gtk.cpp
wb/lib/wb/gtk/wb_wtt_gtk.cpp
+5
-0
xtt/exe/rt_xtt/gtk/rt_xtt_gtk.cpp
xtt/exe/rt_xtt/gtk/rt_xtt_gtk.cpp
+10
-0
No files found.
wb/lib/wb/gtk/wb_wtt_gtk.cpp
View file @
487a4b4e
...
...
@@ -1491,6 +1491,11 @@ void WttGtk::valchanged_cmd_input( GtkWidget *w, gpointer data)
text
=
g_convert
(
textutf8
,
-
1
,
"ISO8859-1"
,
"UTF-8"
,
NULL
,
NULL
,
NULL
);
g_free
(
textutf8
);
if
(
!
text
)
{
wtt
->
wnav
->
wow
->
DisplayError
(
"Input error"
,
"Invalid character"
);
return
;
}
if
(
wtt
->
input_open
)
{
switch
(
wtt
->
input_mode
)
{
case
wtt_eInputMode_Attribute
:
...
...
This diff is collapsed.
Click to expand it.
xtt/exe/rt_xtt/gtk/rt_xtt_gtk.cpp
View file @
487a4b4e
...
...
@@ -631,6 +631,16 @@ void XttGtk::valchanged_cmd_input( GtkWidget *w, gpointer data)
text
=
g_convert
(
textutf8
,
-
1
,
"ISO8859-1"
,
"UTF-8"
,
NULL
,
NULL
,
NULL
);
g_free
(
textutf8
);
if
(
!
text
)
{
g_object_set
(
w
,
"visible"
,
FALSE
,
NULL
);
xtt
->
set_prompt
(
""
);
xtt
->
input_open
=
0
;
xtt
->
command_open
=
0
;
xtt
->
xnav
->
set_inputfocus
();
xtt
->
message
(
'E'
,
"Input error, invalid character"
);
return
;
}
if
(
xtt
->
input_open
)
{
sts
=
xtt
->
xnav
->
set_attr_value
(
text
);
g_object_set
(
w
,
"visible"
,
FALSE
,
NULL
);
...
...
This diff is collapsed.
Click to expand it.
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