[issue1128] msilib.Directory.make_short only handles file names with a single dot in them

Christoph Gohlke report at bugs.python.org
Fri Oct 22 11:19:02 CEST 2010


Christoph Gohlke <cgohlke at uci.edu> added the comment:

The revised patch for issue7639 now generates better short names for file names containing spaces, '+', and leading '.'.

http://bugs.python.org/file19334/msilib.diff

Test cases that could be added to MsilibTest.test_makeshort():

TEST          :  test
TES~1.T       :  t.e.s.t
TEST~1        :  .test
TESTTEST      :  testtest
TESTTE~1      :  .testtest
TESTTE~2      :  test test
TESTTE~3      :  test test test
AFILE~1.DOC   :  A file.doc
THISIS~1.TXT  :  This is a really long filename.123.456.789.txt
THISIS~1.789  :  This is a really long filename.123.456.7890
TEST__~1      :  test++
TE____~1      :  te++++++
TEST~1.__     :  test.++
TEST.123      :  test.123
TEST~1.123    :  test.1234
TEXT~1.123    :  text.1234
TESTTE~1.__   :  testtest.++
FOO.TXT       :  foo.txt
FOO2~1.TXT    :  foo.2.txt
SOMELO~1.TXT  :  someLongName.txt
SOMELO~2.TXT  :  someLongerName.txt
PY~15~1.~     :  py.~1.5.~

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1128>
_______________________________________


More information about the Python-bugs-list mailing list