"sqrtpi" test in calculator scope disabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Scopes |
New
|
Undecided
|
Unassigned |
Bug Description
I have disabled the "sqrtpi" test in the calculator scope's test suite:
https:/
Jenkins runs the tests in the C locale, which is treated as an ASCII locale.
The calculator scope implements its searches by shelling out to gnome-calculator, passing an expression on the command line. A search for "sqrtpi" gets converted to "
√π" which gets passed correctly in a UTF-8 locale, but gets passed as "\u221a\u03c0" in an ASCII locale.
Possible fixes:
1. try to run the tests in a real locale
2. adjust the fake version of gnome-calculator used by the test suite to support the escape code version (not ideal, since gnome-calculator probably doesn't support Python's escaped characters).