{"action":"created","issue":{"url":"https://api.github.com/repos/neomutt/neomutt/issues/258","repository_url":"https://api.github.com/repos/neomutt/neomutt","labels_url":"https://api.github.com/repos/neomutt/neomutt/issues/258/labels{/name}","comments_url":"https://api.github.com/repos/neomutt/neomutt/issues/258/comments","events_url":"https://api.github.com/repos/neomutt/neomutt/issues/258/events","html_url":"https://github.com/neomutt/neomutt/issues/258","id":191902361,"number":258,"title":"Garbled index with unicode strings","user":{"login":"somini","id":1750665,"avatar_url":"https://avatars.githubusercontent.com/u/1750665?v=3","gravatar_id":"","url":"https://api.github.com/users/somini","html_url":"https://github.com/somini","followers_url":"https://api.github.com/users/somini/followers","following_url":"https://api.github.com/users/somini/following{/other_user}","gists_url":"https://api.github.com/users/somini/gists{/gist_id}","starred_url":"https://api.github.com/users/somini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somini/subscriptions","organizations_url":"https://api.github.com/users/somini/orgs","repos_url":"https://api.github.com/users/somini/repos","events_url":"https://api.github.com/users/somini/events{/privacy}","received_events_url":"https://api.github.com/users/somini/received_events","type":"User","site_admin":false},"labels":[{"id":302065905,"url":"https://api.github.com/repos/neomutt/neomutt/labels/bug","name":"bug","color":"fc2929","default":true},{"id":302065907,"url":"https://api.github.com/repos/neomutt/neomutt/labels/enhancement","name":"enhancement","color":"fbca04","default":true},{"id":485367089,"url":"https://api.github.com/repos/neomutt/neomutt/labels/screenshot","name":"screenshot","color":"80ff80","default":false}],"state":"open","locked":false,"assignee":{"login":"flatcap","id":76760,"avatar_url":"https://avatars.githubusercontent.com/u/76760?v=3","gravatar_id":"","url":"https://api.github.com/users/flatcap","html_url":"https://github.com/flatcap","followers_url":"https://api.github.com/users/flatcap/followers","following_url":"https://api.github.com/users/flatcap/following{/other_user}","gists_url":"https://api.github.com/users/flatcap/gists{/gist_id}","starred_url":"https://api.github.com/users/flatcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flatcap/subscriptions","organizations_url":"https://api.github.com/users/flatcap/orgs","repos_url":"https://api.github.com/users/flatcap/repos","events_url":"https://api.github.com/users/flatcap/events{/privacy}","received_events_url":"https://api.github.com/users/flatcap/received_events","type":"User","site_admin":false},"assignees":[{"login":"flatcap","id":76760,"avatar_url":"https://avatars.githubusercontent.com/u/76760?v=3","gravatar_id":"","url":"https://api.github.com/users/flatcap","html_url":"https://github.com/flatcap","followers_url":"https://api.github.com/users/flatcap/followers","following_url":"https://api.github.com/users/flatcap/following{/other_user}","gists_url":"https://api.github.com/users/flatcap/gists{/gist_id}","starred_url":"https://api.github.com/users/flatcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flatcap/subscriptions","organizations_url":"https://api.github.com/users/flatcap/orgs","repos_url":"https://api.github.com/users/flatcap/repos","events_url":"https://api.github.com/users/flatcap/events{/privacy}","received_events_url":"https://api.github.com/users/flatcap/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-11-28T01:39:40Z","updated_at":"2016-12-01T22:23:12Z","closed_at":null,"body":"There's a bug when including unicode characters in the `to_chars` variable. Mutt seemingly doesn't split the string properly and the result is a garbled characters. I've attached a screenshot with the characters produced.\r\n![2016-11-28t01 39 10 00 00](https://cloud.githubusercontent.com/assets/1750665/20653868/816ca514-b50b-11e6-8d77-72d58989e64d.png)\r\n\r\nThe relevant entries in my muttrc:\r\n\r\n    set index_format = \"%F %T[%Z] %s\"\r\n    set to_chars = \" ↓⇊↯↑L\"\r\n    set sidebar_format = \"%B%<N?☼%N>%* %<S?%<F?%F★>%S>\"\r\n\r\nI'm using urxvt on Arch Linux.\r\n```\r\n~ mutt -v\r\nNeoMutt 20161104 (1.7.1)\r\nCopyright (C) 1996-2016 Michael R. Elkins and others.\r\nMutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.\r\nMutt is free software, and you are welcome to redistribute it\r\nunder certain conditions; type `mutt -vv' for details.\r\n\r\nSystem: Linux 4.8.8-2-ARCH (x86_64)\r\nlibidn: 1.33 (compiled with 1.33)\r\nhcache backend: GDBM version 1.12. 16/05/2016 (built May 31 2016 18:36:34)\r\n\r\nCompiler:\r\nUsing built-in specs.\r\nCOLLECT_GCC=gcc\r\nCOLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.1/lto-wrapper\r\nTarget: x86_64-pc-linux-gnu\r\nConfigured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=release\r\nThread model: posix\r\ngcc version 6.2.1 20160830 (GCC) \r\n\r\nConfigure options: '--prefix=/usr' '--sysconfdir=/etc' '--enable-debug' '--enable-pgp' '--enable-gpgme' '--enable-notmuch' '--enable-pop' '--enable-imap' '--enable-smtp' '--enable-hcache' '--enable-sidebar' '--enable-compressed' '--with-gss=/usr' '--with-ssl=/usr' '--with-sasl' '--with-curses=/usr' '--with-regex' '--with-idn' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'\r\n\r\nCompilation CFLAGS: -Wall -pedantic -Wno-long-long -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-delete-null-pointer-checks\r\n\r\nCompile options:\r\n+CRYPT_BACKEND_CLASSIC_PGP +CRYPT_BACKEND_CLASSIC_SMIME +CRYPT_BACKEND_GPGME \r\n+DEBUG -DL_STANDALONE +ENABLE_NLS -EXACT_ADDRESS -HOMESPOOL -LOCALES_HACK \r\n-SUN_ATTACHMENT +HAVE_BKGDSET +HAVE_COLOR +HAVE_CURS_SET +HAVE_GETADDRINFO \r\n+HAVE_GETSID +HAVE_ICONV +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR \r\n+HAVE_LIBIDN +HAVE_META -HAVE_REGCOMP +HAVE_RESIZETERM +HAVE_START_COLOR \r\n+HAVE_TYPEAHEAD +HAVE_WC_FUNCS +ICONV_NONTRANS +USE_COMPRESSED +USE_DOTLOCK \r\n+USE_FCNTL -USE_FLOCK -USE_FMEMOPEN +USE_GNU_REGEX +USE_GSS +USE_HCACHE \r\n+USE_IMAP +USE_NOTMUCH -USE_NNTP +USE_POP +USE_SASL -USE_SETGID +USE_SIDEBAR \r\n+USE_SMTP -USE_SSL_GNUTLS +USE_SSL_OPENSSL \r\n-DOMAIN\r\n-MIXMASTER\r\n-ISPELL\r\nSENDMAIL=\"/usr/sbin/sendmail\"\r\nMAILPATH=\"/var/mail\"\r\nPKGDATADIR=\"/usr/share/mutt\"\r\nSYSCONFDIR=\"/etc\"\r\nEXECSHELL=\"/bin/sh\"\r\n\r\npatch-attach-headers-color-neomutt\r\npatch-compose-to-sender-neomutt\r\npatch-compress-neomutt\r\npatch-cond-date-neomutt\r\npatch-encrypt-to-self-neomutt\r\npatch-fmemopen-neomutt\r\npatch-forgotten-attachments-neomutt\r\npatch-ifdef-neomutt\r\npatch-index-color-neomutt\r\npatch-initials-neomutt\r\npatch-keywords-neomutt\r\npatch-kyoto-neomutt\r\npatch-limit-current-thread-neomutt\r\npatch-lmdb-neomutt\r\npatch-multiple-fcc-neomutt\r\npatch-nested-if-neomutt\r\npatch-new-mail-neomutt\r\npatch-nntp-neomutt\r\npatch-notmuch-neomutt\r\npatch-progress-neomutt\r\npatch-quasi-delete-neomutt\r\npatch-reply-with-xorig-neomutt\r\npatch-sensible-browser-neomutt\r\npatch-sidebar-neomutt\r\npatch-skip-quoted-neomutt\r\npatch-smime-encrypt-self-neomutt\r\npatch-status-color-neomutt\r\npatch-timeout-neomutt\r\npatch-tls-sni-neomutt\r\n\r\nTo learn more about NeoMutt, visit: http://www.neomutt.org/\r\nIf you find a bug in NeoMutt, please raise an issue at:\r\n    https://github.com/neomutt/neomutt/issues\r\nor send an email to: <neomutt-devel@neomutt.org>\r\n```"},"comment":{"url":"https://api.github.com/repos/neomutt/neomutt/issues/comments/264314251","html_url":"https://github.com/neomutt/neomutt/issues/258#issuecomment-264314251","issue_url":"https://api.github.com/repos/neomutt/neomutt/issues/258","id":264314251,"user":{"login":"somini","id":1750665,"avatar_url":"https://avatars.githubusercontent.com/u/1750665?v=3","gravatar_id":"","url":"https://api.github.com/users/somini","html_url":"https://github.com/somini","followers_url":"https://api.github.com/users/somini/followers","following_url":"https://api.github.com/users/somini/following{/other_user}","gists_url":"https://api.github.com/users/somini/gists{/gist_id}","starred_url":"https://api.github.com/users/somini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somini/subscriptions","organizations_url":"https://api.github.com/users/somini/orgs","repos_url":"https://api.github.com/users/somini/repos","events_url":"https://api.github.com/users/somini/events{/privacy}","received_events_url":"https://api.github.com/users/somini/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T22:23:12Z","updated_at":"2016-12-01T22:23:12Z","body":"Works for me, many thanks for the fast reply.\r\n\r\nI'm just starting on mutt, but the %Z format baffled me, and I found no other way of including character on the format string depending on message flags, like read/unread."}}
{"actor":{"display_login":"somini"}}