Error generating locales using master branch

Bug #818270 reported by Anoop Atre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
High
Unassigned

Bug Description

Evergreen version - master
OpenSRF version - 2.0
PostgreSQL version - 9.0
Linux distribution - Ubuntu 10.04

We are getting errors running "make newpot" on a fresh checkout of master.

~/repos/Evergreen/build/i18n$ mkdir locale
opensrf@fred:~/repos/Evergreen/build/i18n$ make newpot
Error in line 9558 of SQL source file: 'NoneType' object has no attribute 'group'
Traceback (most recent call last):
  File "scripts/dojo_resource.py", line 141, in <module>
    main()
  File "scripts/dojo_resource.py", line 116, in main
    pot.get_strings(options.pot)
  File "scripts/dojo_resource.py", line 74, in get_strings
    poe.msgid = str(value)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2021' in position 11: ordinal not in range(128)
make: *** [dojo2pot] Error 1

Thomas Berezansky suggested trying "make install_all_locales" but that returned the same errors.

Ben Shum confirmed the issue and noted there were no problems with fresh rel_2_0 and rel_2_1. He further found that it doesn't like the ‡ character in Open-ILS/web/js/dojo/openils/authority/nls/authority.js which was in line 22. So could be a unicode issue.

Dan Scott has written up a patch to fix this issue available in working repo - user/dbs/fix-i18n-build
[ http://git.evergreen-ils.org/?p=working/Evergreen.git;a=commit;h=8f47b79befdd1d7c92406ec24ef1c8b06f2bc1b2 ]

I have confirmed that the patch fixes the issue.

Tags: pullrequest
Dan Scott (denials)
Changed in evergreen:
status: New → Confirmed
importance: Undecided → High
tags: added: pullrequest
Revision history for this message
Mike Rylander (mrylander) wrote :

Pulled into master. Thanks, Dan and Anoop!

Changed in evergreen:
status: Confirmed → Fix Committed
Changed in evergreen:
milestone: none → 2.2.0
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.