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
f262cfcf
Kaydet (Commit)
f262cfcf
authored
Eyl 01, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
dconf: fix encoding of set element names
Change-Id: I6aba45a70a9ebee65be34af1036bb515fd2a22b7
üst
2921d677
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
10 deletions
+21
-10
dconf.cxx
configmgr/source/dconf.cxx
+21
-10
No files found.
configmgr/source/dconf.cxx
Dosyayı görüntüle @
f262cfcf
...
...
@@ -51,17 +51,25 @@
// N ; T ; O
//
// where ";" represents U+003B SEMICOLON; N is an encoding of the node name,
// where each occurrence of U+003B SEMICOLON is replaced by the three
// characters "\3B" and each ocurrence of U+005C REVERSE SOLIDUS is replaced
// by the three characters "\5C"; T is an encoding of the full template name,
// where each occurrence of U+002F SOLIDUS is replaced by the three characters
// "\2F", each occurrence of U+003B SEMICOLON is replaced by the three
// characters "\3B", and each ocurrence of U+005C REVERSE SOLIDUS is replaced
// by the three characters "\5C"; and O is "fuse" or "replace", respectively.
// where each occurrence of U+0000 NULL is replace by the three characters
// "\00", each occurrence of U+002F SOLIDUS is replaced by the three
// characters "\2F", each occurrence of U+003B SEMICOLON is replaced by the
// three characters "\3B", and each ocurrence of U+005C REVERSE SOLIDUS is
// replaced by the three characters "\5C"; T is an encoding of the full
// template name, where each occurrence of U+002F SOLIDUS is replaced by the
// three characters "\2F", each occurrence of U+003B SEMICOLON is replaced by
// the three characters "\3B", and each ocurrence of U+005C REVERSE SOLIDUS is
// replaced by the three characters "\5C"; and O is "fuse" or "replace",
// respectively.
//
// * Set element and property "remove" operations are encoded as dconf key path
// segments directly using the node name, and the associated value being a
// GVariant of empty tuple type.
// segments as follows, and the associated value being a GVariant of empty
// tuple type. For set elements, the dconf key path segment consists of an
// encoding of the node name, where each occurrence of U+0000 NULL is replace
// by the three characters "\00", each occurrence of U+002F SOLIDUS is
// replaced by the three characters "\2F", and each ocurrence of U+005C
// REVERSE SOLIDUS is replaced by the three characters "\5C". For properties,
// the dconf key path segment directly uses the node name.
//
// * Property and localized property value "fuse" operations map to GVariant
// instances as follows:
...
...
@@ -738,7 +746,7 @@ void readDir(
continue
;
}
name
=
seg
.
copy
(
0
,
i1
);
if
(
!
decode
(
&
name
,
false
,
fals
e
,
true
))
{
if
(
!
decode
(
&
name
,
true
,
tru
e
,
true
))
{
continue
;
}
++
i1
;
...
...
@@ -781,6 +789,9 @@ void readDir(
}
else
{
remove
=
true
;
name
=
seg
;
if
(
!
decode
(
&
name
,
true
,
true
,
false
))
{
continue
;
}
replace
=
false
;
assert
(
!
path
.
endsWith
(
"/"
));
GVariantHolder
v
(
...
...
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