Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docu-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gerhard Gonter
docu-tools
Commits
b9fd7a2e
Commit
b9fd7a2e
authored
Jun 28, 2016
by
Gerhard Gonter
Browse files
Options
Downloads
Patches
Plain Diff
failed expirement to avoid the BOM
parent
99c6ba66
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
perl/Gnome-Tomboy/lib/Tomboy/Note/Simple.pm
+9
-1
9 additions, 1 deletion
perl/Gnome-Tomboy/lib/Tomboy/Note/Simple.pm
with
9 additions
and
1 deletion
perl/Gnome-Tomboy/lib/Tomboy/Note/Simple.pm
+
9
−
1
View file @
b9fd7a2e
...
...
@@ -522,6 +522,7 @@ sub save
my
$note
=
shift
;
my
$out_dir
=
shift
;
my
$fnm_out
=
shift
;
my
$no_utf8
=
shift
;
# refresh lines, if they are not up-to-date
$note
->
update
()
unless
(
$note
->
{'
flg_lines
'});
...
...
@@ -556,7 +557,14 @@ sub save
$fnm_out
.=
$uuid
.
'
.note
';
}
unless
(
open
(
FO
,
'
>:utf8
',
$fnm_out
))
my
$out_mode
=
'
>:utf8
';
if
(
$no_utf8
)
{
print
"
save with no utf8!
\n
";
$out_mode
=
'
>:encoding(iso-8859-7)
';
}
unless
(
open
(
FO
,
$out_mode
,
$fnm_out
))
{
print
STDERR
"
can't write to [
$fnm_out
]
\n
";
return
undef
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment