** Changed in: unity8 (Ubuntu)
   Importance: Undecided => Medium

** Changed in: unity8 (Ubuntu)
     Assignee: (unassigned) => Andrea Cimitan (cimi)

** No longer affects: unity8

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity8 in Ubuntu.
https://bugs.launchpad.net/bugs/1301038

Title:
  TimeFormatterTest does not set environment properly.

Status in unity8 package in Ubuntu:
  Fix Released

Bug description:
  Trying to compile binary package for unity8 with bzr bd fails with
  unit test failure:

  FAIL!  : TimeFormatterTest::testFormatStrF() Compared values are not the same
     Actual   (formatter.timeString())             : 01-04-2014 11:57
     Expected (time.toString("dd-MM-yyyy hh:mmAP")): 01-04-2014 11:57IP.
     Loc: 
[/home/antti/branches/unity8/build-area/unity8-7.84+14.04.20140327.1/tests/plugins/Utils/timeformattertest.cpp(62)]

  See that "IP". That comes from my locale. In Finnish PM is IltaPäivä -> IP .
  Compiling again a few minutes later I got "AP" (for Finnish AamuPäivä).

  The test uses QDateTime which probably picks up my system locale correctly 
and gives the localized postfixes.
  So, the test should set up locale to en_US before executing to get reliable 
results on different systems.

  My locale:
  $ locale
  LANG=en_US.UTF-8
  LANGUAGE=en_US
  LC_CTYPE="en_US.UTF-8"
  LC_NUMERIC=fi_FI.UTF-8
  LC_TIME=fi_FI.UTF-8
  LC_COLLATE="en_US.UTF-8"
  LC_MONETARY=fi_FI.UTF-8
  LC_MESSAGES="en_US.UTF-8"
  LC_PAPER=fi_FI.UTF-8
  LC_NAME=fi_FI.UTF-8
  LC_ADDRESS=fi_FI.UTF-8
  LC_TELEPHONE=fi_FI.UTF-8
  LC_MEASUREMENT=fi_FI.UTF-8
  LC_IDENTIFICATION=fi_FI.UTF-8
  LC_ALL=

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/1301038/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to