Submitted by : simon at: 2005-09-01T15:35:34+00:00 (12 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

As Arno Pucher reported on #809

2005-02-14T10:17:43 ERROR(200) Zope Could not import Products.ZWiki
Traceback (most recent call last):
  File "C:\Programme\Zope-2.7.0\lib\python\OFS\Application.py", line 654, in import_product
    product=__import__(pname, global_dict, global_dict, silly)
  File "D:\DATA\Zope\instances\Products\ZWiki\__init__.py", line 12, in ?
    import ZWikiPage, ZWikiWeb, Permissions, Defaults
  File "D:\DATA\Zope\instances\Products\ZWiki\ZWikiPage.py", line 76, in ?
    from Admin import AdminSupport
  File "D:\DATA\Zope\instances\Products\ZWiki\Admin.py", line 18, in ?
    from pagetypes import PAGE_TYPE_UPGRADES
  File "D:\DATA\Zope\instances\Products\ZWiki\pagetypes\__init__.py", line 132, in ?
    __import__('Products.ZWiki.pagetypes.%s' % file)
  File "D:\DATA\Zope\instances\Products\ZWiki\pagetypes\moin.py", line 11, in ?
    from moin_support import render_moin_markup
  File "D:\DATA\Zope\instances\Products\ZWiki\pagetypes\moin_support.py", line 40, in ?
    class Parser:
  File "D:\DATA\Zope\instances\Products\ZWiki\pagetypes\moin_support.py", line 64, in Parser
    word_rule =

ur'(?:(?<[%(l)s]?)|^)%(parent)s(?:%(subpages)s(?:[%(u)s]?[%(l)s]?+){2,})+(?[%(u)s%(l)s]?+)' % {

LookupError?: unknown encoding: 1252

This problem was solved for Zwiki's regular expressions by making them handle character encoding issues. The same thing needs to be done for those in moin_support.py. I don't use moin markup and don't want to spend this time, especially as I don't really understand the topic. It has to get done or moin support has to be disabled by default, though, as this breaks installation for people in at least some locales.

property change --simon, Thu, 01 Sep 2005 16:45:34 -0700 reply

Name: '#1148 moin regexps prevent zwiki installation in some locales' => '#1148 moin markup support doesn't work in some locales'

This problem now (as of Zwiki 0.45) just disables the moin page type, not the whole Zwiki installation.

Umlauts --Wed, 09 Nov 2005 02:36:06 -0800 reply

I don't know if it's the same bug but I get an UnicodeDecodeError? when editing pages in MoinMoinMarkup

downgrading --simon, Thu, 01 May 2008 21:12:36 -0700 reply

Name: '#1148 moin markup support doesn't work in some locales' => '#1148 moin plugin can break startup in some locales' Severity: serious => wishlist Status: open => closed

I'm downgrading this as nowadays Zwiki will simply skip the plugin at startup. The problem remains in our moinmoin plugin, but I know nobody using this, so it's a pure wishlist item. Patches or Paypal to get it done.