grammar fix: 'multibyte filename' is ambiguous. They are replaced with 'non-ASCII filename'. refs #703

This commit is contained in:
Takayuki Shimizukawa
2013-10-03 06:43:22 +00:00
parent 1c02e0ee29
commit be65b99879
7 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ Bugs fixed
a named target.
* A wrong condition broke the search feature on first page that is usually
index.rst. This issue was introduced in 1.2b1.
* #703: When Sphinx can't decode filenames with multibyte characters, Sphinx now
* #703: When Sphinx can't decode filenames with non-ASCII characters, Sphinx now
catches UnicodeError and will continue if possible instead of raising the
exception.
@@ -87,7 +87,7 @@ Bugs fixed
* #1189: "Title underline is too short" WARNING is given when using fullwidth
characters to "Project name" on quickstart.
* #1190: Output TeX/texinfo/man filename has no basename (only extension)
when using multibyte characters in the "Project name" on quickstart.
when using non-ASCII characters in the "Project name" on quickstart.
* #1192: Fix escaping problem for hyperlinks in the manpage writer.
* #1193: Fix i18n: multiple link references in the same line return the same
link.
+1 -1
View File
@@ -81,7 +81,7 @@ def walk(top, topdown=True, followlinks=False):
fullpath = path.join(top, name)
except UnicodeError:
print >>sys.stderr, (
'%s:: ERROR: multibyte filename not supported on this '
'%s:: ERROR: non-ASCII filename not supported on this '
'filesystem encoding %r, skipped.' % (name, fs_encoding))
continue
if path.isdir(fullpath):
+1 -1
View File
@@ -43,7 +43,7 @@ def test_events(app):
@with_app()
def test_emit_with_multibyte_name_node(app):
def test_emit_with_nonascii_name_node(app):
node = nodes.section(names=[u'\u65e5\u672c\u8a9e'])
app.emit('my_event', node)
+2 -2
View File
@@ -73,7 +73,7 @@ def test_pseudoxml(app):
app.builder.build_all()
@with_app(buildername='html', srcdir='(temp)')
def test_multibyte_path(app):
def test_nonascii_path(app):
srcdir = path(app.srcdir)
mb_name = u'\u65e5\u672c\u8a9e'
try:
@@ -81,7 +81,7 @@ def test_multibyte_path(app):
except UnicodeEncodeError:
from path import FILESYSTEMENCODING
raise SkipTest(
'multibyte filename not supported on this filesystem encoding: '
'nonascii filename not supported on this filesystem encoding: '
'%s', FILESYSTEMENCODING)
(srcdir / mb_name / (mb_name + '.txt')).write_text(dedent("""
+3 -3
View File
@@ -86,7 +86,7 @@ def test_lineblock(app):
@with_text_app()
def test_multibyte_title_line(app):
def test_nonascii_title_line(app):
title = u'\u65e5\u672c\u8a9e'
underline = u'=' * column_width(title)
content = u'\n'.join((title, underline, u''))
@@ -101,7 +101,7 @@ def test_multibyte_title_line(app):
@with_text_app()
def test_multibyte_table(app):
def test_nonascii_table(app):
text = u'\u65e5\u672c\u8a9e'
contents = (u"\n.. list-table::"
"\n"
@@ -122,7 +122,7 @@ def test_multibyte_table(app):
@with_text_app()
def test_multibyte_maxwidth(app):
def test_nonascii_maxwidth(app):
sb_text = u'abc' #length=3
mb_text = u'\u65e5\u672c\u8a9e' #length=3
+2 -2
View File
@@ -108,7 +108,7 @@ def test_do_prompt():
raises(AssertionError, qs.do_prompt, d, 'k6', 'Q6', validator=qs.boolean)
def test_do_prompt_with_multibyte():
def test_do_prompt_with_nonascii():
d = {}
answers = {
'Q1': u'\u30c9\u30a4\u30c4',
@@ -118,7 +118,7 @@ def test_do_prompt_with_multibyte():
qs.do_prompt(d, 'k1', 'Q1', default=u'\u65e5\u672c')
except UnicodeEncodeError:
raise SkipTest(
'multibyte console input not supported on this encoding: %s',
'non-ASCII console input not supported on this encoding: %s',
qs.TERM_ENCODING)
assert d['k1'] == u'\u30c9\u30a4\u30c4'
+2 -2
View File
@@ -59,7 +59,7 @@ def test_build_sphinx(pkgroot, proc):
@with_setup_command(root)
def test_build_sphinx_with_multibyte_path(pkgroot, proc):
def test_build_sphinx_with_nonascii_path(pkgroot, proc):
mb_name = u'\u65e5\u672c\u8a9e'
srcdir = (pkgroot / 'doc')
try:
@@ -67,7 +67,7 @@ def test_build_sphinx_with_multibyte_path(pkgroot, proc):
except UnicodeEncodeError:
from path import FILESYSTEMENCODING
raise SkipTest(
'multibyte filename not supported on this filesystem encoding: '
'non-ASCII filename not supported on this filesystem encoding: '
'%s', FILESYSTEMENCODING)
(srcdir / mb_name / (mb_name + '.txt')).write_text(dedent("""