Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
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ç
Batuhan Osman TASKAYA
django
Commits
3e71f654
Kaydet (Commit)
3e71f654
authored
Tem 14, 2016
tarafından
Claude Paroz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #26897 -- Fixed makemessages crash on Python 2 with non-ASCII file names
Thanks Tim Graham for the review.
üst
8ef78b81
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
makemessages.py
django/core/management/commands/makemessages.py
+1
-1
1.9.8.txt
docs/releases/1.9.8.txt
+3
-0
test_extraction.py
tests/i18n/test_extraction.py
+4
-0
No files found.
django/core/management/commands/makemessages.py
Dosyayı görüntüle @
3e71f654
...
@@ -549,7 +549,7 @@ class Command(BaseCommand):
...
@@ -549,7 +549,7 @@ class Command(BaseCommand):
input_files
=
[
bf
.
work_path
for
bf
in
build_files
]
input_files
=
[
bf
.
work_path
for
bf
in
build_files
]
with
NamedTemporaryFile
(
mode
=
'w+'
)
as
input_files_list
:
with
NamedTemporaryFile
(
mode
=
'w+'
)
as
input_files_list
:
input_files_list
.
write
(
'
\n
'
.
join
(
input_files
))
input_files_list
.
write
(
force_str
(
'
\n
'
.
join
(
input_files
),
encoding
=
DEFAULT_LOCALE_ENCODING
))
input_files_list
.
flush
()
input_files_list
.
flush
()
args
.
extend
([
'--files-from'
,
input_files_list
.
name
])
args
.
extend
([
'--files-from'
,
input_files_list
.
name
])
args
.
extend
(
self
.
xgettext_options
)
args
.
extend
(
self
.
xgettext_options
)
...
...
docs/releases/1.9.8.txt
Dosyayı görüntüle @
3e71f654
...
@@ -12,3 +12,6 @@ Bugfixes
...
@@ -12,3 +12,6 @@ Bugfixes
* Fixed missing ``varchar/text_pattern_ops`` index on ``CharField`` and
* Fixed missing ``varchar/text_pattern_ops`` index on ``CharField`` and
``TextField`` respectively when using ``AddField`` on PostgreSQL
``TextField`` respectively when using ``AddField`` on PostgreSQL
(:ticket:`26889`).
(:ticket:`26889`).
* Fixed ``makemessages`` crash on Python 2 with non-ASCII file names
(:ticket:`26897`).
tests/i18n/test_extraction.py
Dosyayı görüntüle @
3e71f654
...
@@ -209,6 +209,10 @@ class BasicExtractorTests(ExtractorTests):
...
@@ -209,6 +209,10 @@ class BasicExtractorTests(ExtractorTests):
self
.
assertIn
(
"UnicodeDecodeError: skipped file not_utf8.txt in ."
,
self
.
assertIn
(
"UnicodeDecodeError: skipped file not_utf8.txt in ."
,
force_text
(
out
.
getvalue
()))
force_text
(
out
.
getvalue
()))
def
test_unicode_file_name
(
self
):
open
(
os
.
path
.
join
(
self
.
test_dir
,
'vidéo.txt'
),
'a'
)
.
close
()
management
.
call_command
(
'makemessages'
,
locale
=
[
LOCALE
],
verbosity
=
0
)
def
test_extraction_warning
(
self
):
def
test_extraction_warning
(
self
):
"""test xgettext warning about multiple bare interpolation placeholders"""
"""test xgettext warning about multiple bare interpolation placeholders"""
shutil
.
copyfile
(
'./code.sample'
,
'./code_sample.py'
)
shutil
.
copyfile
(
'./code.sample'
,
'./code_sample.py'
)
...
...
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