[Zope3-dev] Test failure - testRegisterTranslations

Tim Peters tim at zope.com
Sun Jan 18 19:50:59 EST 2004


[Dave Harris]
> On Windows XP, I get a unit test failure in testRegisterTranslations.
> I've tracked the problem down to a CVS checkout problem with the
> binary file zope-i18n.mo.

Anyone running any flavor of Windows would have gotten the same failure.  So
you're the only one trying Windows now, or everyone else is too shy to
report problems.

> ...
> As I understand CVS, versioning binary files requires special
> consideration.

Yes -- binary files must be marked binary in CVS.  There's something global
that can be done on Zope Corp's end so that the .mo extension would
magically be considered as indicating a binary file to CVS, but I don't have
the mojo to do that.

People adding a binary file to a project should use the -kb switch on their
CVS "add" command.

After the fact (like now), an individual can mark it binary retroactively
via

    cvs admin -kb name_of_file

but that doesn't immediately help people who already checked it out:  they
have to delete the file, and refetch it.

I've done that for 3 .mo files that weren't already marked binary:

    src\zope\i18n\tests\de-default.mo
    src\zope\i18n\tests\en-default.mo
    src\zope\i18n\tests\locale\en\LC_MESSAGES\zope-i18n.mo

then deleted them (on a Windows) box, and refetched them (just a cvs up).
testRegisterTranslations passes here now.

An irony is that I could only make time to do this because I'm ignoring work
today <wink>.




More information about the Zope3-dev mailing list