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
5eb408a3
Kaydet (Commit)
5eb408a3
authored
Tem 10, 2014
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#81044 detect UTF-8 BOM too
Change-Id: I6fd041780b889e2125b916964ba27d032667dcd6
üst
6476f559
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
svparser.cxx
svtools/source/svrtf/svparser.cxx
+19
-0
No files found.
svtools/source/svrtf/svparser.cxx
Dosyayı görüntüle @
5eb408a3
...
...
@@ -185,6 +185,25 @@ sal_Unicode SvParser::GetNextChar()
}
}
}
else
if
(
0xef
==
c1
||
0xbb
==
c1
)
// check for UTF-8 BOM
{
rInput
.
ReadUChar
(
c2
);
bErr
=
rInput
.
IsEof
()
||
rInput
.
GetError
();
if
(
!
bErr
)
{
if
(
(
0xef
==
c1
&&
0xbb
==
c2
)
||
(
0xbb
==
c1
&&
0xef
==
c2
)
)
{
unsigned
char
c3
(
0
);
rInput
.
ReadUChar
(
c3
);
bErr
=
rInput
.
IsEof
()
||
rInput
.
GetError
();
if
(
!
bErr
&&
(
0xbf
==
c3
)
)
{
eSrcEnc
=
RTL_TEXTENCODING_UTF8
;
bSeekBack
=
false
;
}
}
}
}
}
if
(
bSeekBack
)
rInput
.
Seek
(
0
);
...
...
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