Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
e6ac2ad7
Kaydet (Commit)
e6ac2ad7
authored
Agu 14, 2012
tarafından
Tim Retout
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
installer::download: Remove unused unicode conversion functions.
Change-Id: Ie4a22b0e88c5509d291b47f4af67ab780d60e3a8
üst
42801a0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
58 deletions
+0
-58
download.pm
solenv/bin/modules/installer/download.pm
+0
-58
No files found.
solenv/bin/modules/installer/download.pm
Dosyayı görüntüle @
e6ac2ad7
...
...
@@ -778,64 +778,6 @@ sub get_language_string_from_language_block
return
$newstring
;
}
##################################################################
# Converting utf 16 file to utf 8
##################################################################
sub
convert_utf16_to_utf8
{
my
(
$filename
)
=
@_
;
my
@localfile
=
();
my
$savfilename
=
$filename
.
"_before.utf16"
;
installer::systemactions::
copy_one_file
(
$filename
,
$savfilename
);
open
(
IN
,
"<:encoding(UTF16-LE)"
,
$filename
)
||
installer::exiter::
exit_program
(
"ERROR: Cannot open file $filename for reading"
,
"convert_utf16_to_utf8"
);
while
(
$line
=
<
IN
>
)
{
push
@localfile
,
$line
;
}
close
(
IN
);
if
(
open
(
OUT
,
">:utf8"
,
$filename
)
)
{
print
OUT
@localfile
;
close
(
OUT
);
}
$savfilename
=
$filename
.
"_before.utf8"
;
installer::systemactions::
copy_one_file
(
$filename
,
$savfilename
);
}
##################################################################
# Converting utf 8 file to utf 16
##################################################################
sub
convert_utf8_to_utf16
{
my
(
$filename
)
=
@_
;
my
@localfile
=
();
my
$savfilename
=
$filename
.
"_after.utf8"
;
installer::systemactions::
copy_one_file
(
$filename
,
$savfilename
);
open
(
IN
,
"<:utf8"
,
$filename
)
||
installer::exiter::
exit_program
(
"ERROR: Cannot open file $filename for reading"
,
"convert_utf8_to_utf16"
);
while
(
$line
=
<
IN
>
)
{
push
@localfile
,
$line
;
}
close
(
IN
);
if
(
open
(
OUT
,
">:raw:encoding(UTF16-LE):crlf:utf8"
,
$filename
)
)
{
print
OUT
@localfile
;
close
(
OUT
);
}
$savfilename
=
$filename
.
"_after.utf16"
;
installer::systemactions::
copy_one_file
(
$filename
,
$savfilename
);
}
####################################################
# Creating link tree for upload
####################################################
...
...
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