[Bugs] #2696 HIGH: Xgettext error

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Wed Mar 16 13:22:16 EDT 2011


#2696: Xgettext error
----------------------------+-----------------------------------------------
    Reporter:  RafaelOrtiz  |          Owner:  RafaelOrtiz                
        Type:  defect       |         Status:  assigned                   
    Priority:  High         |      Milestone:  Unspecified by Release Team
   Component:  untriaged    |        Version:  Unspecified                
    Severity:  Unspecified  |       Keywords:                             
Status_field:  Unconfirmed  |   Distribution:  Unspecified                
   Seeta_dev:               |  
----------------------------+-----------------------------------------------

Comment(by sascha_silbe):

 I can reproduce some error with Record, though I'm not sure it's the same
 one since you didn't provide the actual error message. This is what I see:

 {{{
 (sugar-jhbuild1)sascha.silbe at twin:~/sugar-jhbuild/source/record$ ~/sugar-
 jhbuild/sugar-jhbuild run ./setup.py genpot
 Warning: unknown distro version, automatic fallback to unstable.
 /home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-
 packages/sugar/bundle/activitybundle.py:175: DeprecationWarning: use exec
 instead of class in your activity.info
   'in your activity.info', DeprecationWarning)
 model.py:153: warning: 'msgid' format string with unnamed arguments cannot
 be properly localized:
                        The translator cannot reorder the arguments.
                        Please consider using a format string with named
 arguments,
                        and a mapping instead of a tuple for the arguments.
 model.py:361: warning: 'msgid' format string with unnamed arguments cannot
 be properly localized:
                        The translator cannot reorder the arguments.
                        Please consider using a format string with named
 arguments,
                        and a mapping instead of a tuple for the arguments.
 xgettext: Non-ASCII string at network.py:547.
           Please specify the source encoding through --from-code.
 ERROR - xgettext failed with return code 1.
 (sugar-jhbuild1)sascha.silbe at twin:~/sugar-jhbuild/source/record$
 }}}

 Line 547 of network.py contains:

 {{{
         pattern =
 "([\xf6-\xf7][\x80-\xbf]{0,2}|[\xe0-\xef][\x80-\xbf]{0,1}|[\xc0-\xdf])$"
 }}}

 Note that this is a byte string constant (not a unicode one) and there's
 no use of any translation related function on this line (and it doesn't
 get translated anywhere else in the code either). The non-ASCII bytes are
 fragments of UTF-8 sequences, so the byte string cannot be decoded to any
 sequence of characters, no matter what encoding.

 Looks like an xgettext bug to me. Please report it
 [http://www.gnu.org/software/gettext/FAQ.html#general_mailinglist
 upstream].

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/2696#comment:3>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list