-
Notifications
You must be signed in to change notification settings - Fork 34
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
use multibyte.h macros for CHAR_T #16
base: main
Are you sure you want to change the base?
Conversation
this fixes O commands with autoindent and J command at least.
CHAR_T literals should be wrapped with L() macro, yes. Locale sensitive upper/lower case sometime makes sense.
|
i'm not sure what you mean. isspace etc is locale sensitive. |
That's true... Here are the details: I assume that I can use the narrow char type functions on wide chars and And then, I tested the locale effects to the narrow char type functions So if you see narrow char type functions on wide chars in nvi2 code, they I would suggest to split this patch into two, one for |
it might happen to work for you, but not for me. at least O commands with autoindent and J command was broken for fileencoding=iso-2022-jp using a full-width space as a command splitter might be a little icky but not broken as the current code. i don't bother to separate patch because L() part is not important at all. |
On Fri, Mar 14, 2014 at 12:47 PM, YAMAMOTO Takashi <notifications@github.com
Can you show me the steps to reproduce it? And your locale settings. Hope iswblank() must not be used alone for J command. You definitely don't want
Zhihao Yuan, ID lichray 4BSD -- http://4bsd.biz/ |
LANG=ja_JP.eucJP vi and vi |
@yamt I looked at this patch again and noticed that none of the change you request was prefixed by
|
2c1d2dc
to
9f2cc1e
Compare
834f889
to
4ee3903
Compare
@yamt Can you give this branch a test? Thanks. https://github.com/lichray/nvi2/tree/narrow-wctype |
this fixes O commands with autoindent and J command at least.