Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
c8abebcd
Commit
c8abebcd
authored
Aug 16, 2011
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 655472: Print out localconfig as UTF-8 so we don't mangle UTF-8 comments.
r=LpSolit, a=LpSolit
parent
26db6feb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Localconfig.pm
Bugzilla/Install/Localconfig.pm
+3
-2
No files found.
Bugzilla/Install/Localconfig.pm
View file @
c8abebcd
...
@@ -245,7 +245,8 @@ sub update_localconfig {
...
@@ -245,7 +245,8 @@ sub update_localconfig {
# Move any custom or old variables into a separate file.
# Move any custom or old variables into a separate file.
if
(
scalar
@old_vars
)
{
if
(
scalar
@old_vars
)
{
my
$filename_old
=
"$filename.old"
;
my
$filename_old
=
"$filename.old"
;
open
(
my
$old_file
,
">>$filename_old"
)
||
die
"$filename_old: $!"
;
open
(
my
$old_file
,
">>:utf8"
,
$filename_old
)
or
die
"$filename_old: $!"
;
local
$
Data::Dumper::
Purity
=
1
;
local
$
Data::Dumper::
Purity
=
1
;
foreach
my
$var
(
@old_vars
)
{
foreach
my
$var
(
@old_vars
)
{
print
$old_file
Data::
Dumper
->
Dump
([
$localconfig
->
{
$var
}],
print
$old_file
Data::
Dumper
->
Dump
([
$localconfig
->
{
$var
}],
...
@@ -259,7 +260,7 @@ sub update_localconfig {
...
@@ -259,7 +260,7 @@ sub update_localconfig {
}
}
# Re-write localconfig
# Re-write localconfig
open
(
my
$fh
,
">
$filename"
)
||
die
"$filename: $!"
;
open
(
my
$fh
,
">
:utf8"
,
$filename
)
or
die
"$filename: $!"
;
foreach
my
$var
(
LOCALCONFIG_VARS
)
{
foreach
my
$var
(
LOCALCONFIG_VARS
)
{
my
$name
=
$var
->
{
name
};
my
$name
=
$var
->
{
name
};
my
$desc
=
install_string
(
"localconfig_$name"
,
{
root
=>
ROOT_USER
});
my
$desc
=
install_string
(
"localconfig_$name"
,
{
root
=>
ROOT_USER
});
...
...
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