Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chart is displayed wrongly after a wide character #483

Open
jyi2ya opened this issue Mar 9, 2022 · 0 comments
Open

Chart is displayed wrongly after a wide character #483

jyi2ya opened this issue Mar 9, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@jyi2ya
Copy link

jyi2ya commented Mar 9, 2022

My data file is:

inc 20220309T093000Z - 20220309T110000Z # 测试
inc 20220309T110000Z - 20220309T120000Z # test
  • Actual behaviors

shot0

  • Expected behavior

shot1

  • Diagnostics infomation

timew 1.4.3-dev
       Platform: Linux

Compiler:
        Version: 11.2.0
           Caps: +stdc +stdc_hosted +LP64 +c8 +i32 +l64 +vp64 +time_t64
     Compliance: C++11

Build Features
          Built: Mar  9 2022 08:56:40
         Commit: 8ba588dc
          CMake: 3.22.1
     Build type: 

Configuration
  TIMEWARRIORDB: -
            Cfg: /home/jyi/.timewarrior/timewarrior.cfg (-rw- 140 bytes)
       Database: /home/jyi/.timewarrior (drwx 4096 bytes)
        $EDITOR: vim
    Color theme: Built-in default

Extensions
       Location: /home/jyi/.timewarrior/extensions (drwx 4096 bytes)
               (None)

I have tried this code:

#include "utf8.cpp"
#include <iostream>

int main()
{
	std::cout << utf8_text_width("测试") << std::endl;
	return 0;
}

The result was 4 as expected. So maybe there are some problems in timewarrior but not libshare.

@lauft lauft added the bug Something isn't working label Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants