[ 
https://issues.apache.org/jira/browse/MDEP-552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15852784#comment-15852784
 ] 

Keir commented on MDEP-552:
---------------------------

I believe NPM uses this package: https://github.com/iarna/has-unicode

Which describes its algorithm thus:

Detecting Unicode

What we actually detect is UTF-8 support, as that's what Node itself supports. 
If you have a UTF-16 locale then you won't be detected as unicode capable.
Windows

Since at least Windows 7, cmd and powershell have been unicode capable, but 
unfortunately even then it's not guaranteed. In many localizations it still 
uses legacy code pages and there's no facility short of running programs or 
linking C++ that will let us detect this. As such, we report any Windows 
installation as NOT unicode capable, and recommend that you encourage your 
users to override this via config.
Unix Like Operating Systems

We look at the environment variables LC_ALL, LC_CTYPE, and LANG in that order. 
For LC_ALL and LANG, it looks for .UTF-8 in the value. For LC_CTYPE it looks to 
see if the value is UTF-8. This is sufficient for most POSIX systems. While 
locale data can be put in /etc/locale.conf as well, AFAIK it's always copied 
into the environment.

> Change characters used to diplay trees to make relationships clearer
> --------------------------------------------------------------------
>
>                 Key: MDEP-552
>                 URL: https://issues.apache.org/jira/browse/MDEP-552
>             Project: Maven Dependency Plugin
>          Issue Type: Improvement
>          Components: tree
>            Reporter: Keir
>
> NPM for example uses characters such as:
> ├── foo
> │   ├── bar
> │   └── baz
> I feel these characters make it much clearer then there is a large tree on 
> screen what is related to what.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to