← Back to team overview

openlp-core team mailing list archive

[Bug 1046587] [NEW] ASCII characters in default service name cause error

 

Public bug reported:

When using non-ASCII characters in the default service name (for instance Swedish "Körschema"), there is an error when saving the service.
Additionally, the service name preview in the settings (where configuring the service name template) says "Syntax error" when using non-ASCII characters.

OS: Xubuntu 12.04
OpenLP: revision 2051 of branch http://bazaar.launchpad.net/~openlp-core/openlp/trunk
Traceback (most recent call last):
  File "/home/erik/dator/utveckling/openlp/openlp/core/ui/servicemanager.py", line 470, in saveFile
    return self.saveFileAs()
  File "/home/erik/dator/utveckling/openlp/openlp/core/ui/servicemanager.py", line 624, in saveFileAs
    default_filename = time.strftime(default_pattern)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 1: ordinal not in range(128)

** Affects: openlp
     Importance: Undecided
         Status: New


** Tags: service unicode

** Tags added: service

** Tags added: unicode

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1046587

Title:
  ASCII characters in default service name cause error

Status in OpenLP - Worship Presentation Software:
  New

Bug description:
  When using non-ASCII characters in the default service name (for instance Swedish "Körschema"), there is an error when saving the service.
  Additionally, the service name preview in the settings (where configuring the service name template) says "Syntax error" when using non-ASCII characters.

  OS: Xubuntu 12.04
  OpenLP: revision 2051 of branch http://bazaar.launchpad.net/~openlp-core/openlp/trunk
  Traceback (most recent call last):
    File "/home/erik/dator/utveckling/openlp/openlp/core/ui/servicemanager.py", line 470, in saveFile
      return self.saveFileAs()
    File "/home/erik/dator/utveckling/openlp/openlp/core/ui/servicemanager.py", line 624, in saveFileAs
      default_filename = time.strftime(default_pattern)
  UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 1: ordinal not in range(128)

To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1046587/+subscriptions


Follow ups

References