Giter VIP home page Giter VIP logo

Comments (11)

jarun avatar jarun commented on May 12, 2024

move below line 'setlocale(LC_ALL, "") ' before 'initscr()'

For me (I have en_US.UTF-8), commit eb05306 worked.

Anyway, I'm trying to roll a patch for you to test. I need to run some tests myself. Around half an hour please...

from nnn.

wugq avatar wugq commented on May 12, 2024

I'm running Debian Stable, my local is en_US.UTF-8

wugq@x220:~/test$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
wugq@x220:~/test$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 8.7 (jessie)
Release:	8.7
Codename:	jessie

The some Chinese fonts can be displayed, but the support is not fully.

2017-04-16-133450_935x279_scrot
2017-04-16-133737_811x161_scrot

Thank you!

from nnn.

jarun avatar jarun commented on May 12, 2024

Please test with 1e574af

Issue:

from nnn.

wugq avatar wugq commented on May 12, 2024

The display of Chinese is correct!

Thank you!

2017-04-16-134622_411x199_scrot

from nnn.

jarun avatar jarun commented on May 12, 2024

But we have other problems... :)

from nnn.

zmwangx avatar zmwangx commented on May 12, 2024

macOS system libcurses from ncurses 5.4 supports wide characters perfectly here.
Meanwhile, I am able to reproduce the issue on Debian Jessie with 2d7b575.

It is possible to use ncurses 6.0 from Homebrew instead, which does come with libncursesw, but I don't see the need, and it raises the bar of entry on macOS significantly. While I understand your reluctance, I'd say a uname test in the Makefile is the best compromise here.

from nnn.

jarun avatar jarun commented on May 12, 2024

Yes, some googling gives me a similar idea... Can you please raise a PR tested on OS X? I will check it out on Ubuntu and merge it.

from nnn.

jarun avatar jarun commented on May 12, 2024

Fixed at 0cc59f7. Thanks @wugq for sharing your findings and making the process quicker!

from nnn.

jarun avatar jarun commented on May 12, 2024

@zmwangx can you please re-test this? It's been sometime and I've made lots of changes here and there. Just to confirm... whenever you get the time.

from nnn.

zmwangx avatar zmwangx commented on May 12, 2024

@jarun Just tested master and I don't see any problem.

from nnn.

jarun avatar jarun commented on May 12, 2024

👍

from nnn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.