On Wednesday, December 10, 2014 6:52:50 PM UTC-8, Greg Earle wrote:
>
> On Dec 9, 2014, at 5:07 PM, Ryan Ollos wrote:
>
> > [root@stride2 tests]# printenv LANG
> > en_US.UTF-8
> >
> > [root@stride2 SRPMS]# rpmbuild --rebuild trac-1.0.2-2.fc19.src.rpm
> > Installing trac-1.0.2-2.fc19.src.rpm
> >
> > [...]
> >
> > ======================================================================
> > ERROR: test_get_node
> (tracopt.versioncontrol.git.tests.git_fs.GitNormalTestCase)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> > File
> "/root/rpmbuild/BUILD/Trac-1.0.2/tracopt/versioncontrol/git/tests/git_fs.py",
> line 267, in test_get_node
> > self._git('branch', u'tïckét10605', 'master')
> > File
> "/root/rpmbuild/BUILD/Trac-1.0.2/tracopt/versioncontrol/git/tests/git_fs.py",
> line 53, in _git
> > cwd=self.repos_path, **kwargs)
> > File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
> > errread, errwrite)
> > File "/usr/lib64/python2.6/subprocess.py", line 1234, in
> _execute_child
> > raise child_exception
> > TypeError: execv() arg 2 must contain only strings
> >
> > ----------------------------------------------------------------------
> >
> > This smells a lot like Ticket 12020 (or 11675?) but I thought that was
> fixed
> > by now? Sorry, I don't know enough about Trac 1.0.x to decipher this.
> >
> > The traceback looks similar to #11291
> > http://trac.edgewall.org/ticket/11291
> > You should probably open a ticket for the issue.
> >
> > What is the output of the "locale" command?
>
> Hi Ryan,
>
> Thanks for replying. The "locale" output is
>
> --
> [root@stride2 ~]# locale
> LANG=en_US.UTF-8
> LC_CTYPE="en_US.UTF-8"
> LC_NUMERIC="en_US.UTF-8"
> LC_TIME="en_US.UTF-8"
> LC_COLLATE="en_US.UTF-8"
> LC_MONETARY="en_US.UTF-8"
> LC_MESSAGES="en_US.UTF-8"
> LC_PAPER="en_US.UTF-8"
> LC_NAME="en_US.UTF-8"
> LC_ADDRESS="en_US.UTF-8"
> LC_TELEPHONE="en_US.UTF-8"
> LC_MEASUREMENT="en_US.UTF-8"
> LC_IDENTIFICATION="en_US.UTF-8"
> LC_ALL=
> --
>
> I changed $LANG to "C" and re-ran it with
>
> --
> [root@stride2 SRPMS]# locale
> LANG=C
> LC_CTYPE="C"
> LC_NUMERIC="C"
> LC_TIME="C"
> LC_COLLATE="C"
> LC_MONETARY="C"
> LC_MESSAGES="C"
> LC_PAPER="C"
> LC_NAME="C"
> LC_ADDRESS="C"
> LC_TELEPHONE="C"
> LC_MEASUREMENT="C"
> LC_IDENTIFICATION="C"
> LC_ALL=
> --
>
> but I get the same error.
>
> You mentioned ticket 11291; that bug also says "Fixed in [12020]"
> like the other ticket(s) I mentioned. I also noticed that 11291
> says "No errors if filesystem encoding is UTF-8, e.g. en_US.UTF8."
>
> Shouldn't Changeset 12020 be folded into Trac 1.0.2? It's over a
> year old. (Sept. 2013)
>
Yes, changeset [12020] was included in Trac 1.0.2. You've potentially
uncovered a similar issue in another part of the codebase. I can reproduce
the issue when running the tests on Ubuntu:
LC_ALL=C make unit-test
However, I get the same output as you for "locale" on Ubuntu, and tests
don't fail if running either:
make unit-test
LC_ALL= make unit-test
I'm not sure what happens when "rpmbuild --rebuild
trac-1.0.2-2.fc19.src.rpm", but it behaves as though the environment has
LC_ALL=C.
So the best course of action is to open a ticket and at a minimum we can
modify the failing tests by making a change similar to [12020].
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.