Detecting the locale is apparently rather straightforward:

    sage: import locale
    sage: locale.getdefaultlocale()
    ('en_US', 'UTF-8')

Not sure that I know where the code must be written, though ^^;

Nathann

On 24 January 2016 at 18:25, Nathann Cohen <nathann.co...@gmail.com> wrote:
> Yoooooooo,
>
>> sage: from sage.repl.rich_output import get_display_manager
>> sage: dm = get_display_manager()
>> sage: dm.text = 'unicode_art'
>> sage: matrix([[2,1],[2,2]])
>> ⎛2 1⎞
>> ⎝2 2⎠
>
> Oh, True. But I have to use .str() all the time though, because my
> matrices are too large to appear in the __repr__.
>
>> to actually make it the default if the locales are specified as unicode, 
>> e.g. "en_US.utf8". Would be nice.
>
> That would be cool for the __repr__ indeed. It would be weird to have
> .str() depend on that though :-/
>
> Nathann

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to