Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
754aa8ba
Commit
754aa8ba
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: elide a variable and a pair of braces
parent
53cea142
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/nano.c
+6
-10
src/nano.c
with
6 additions
and
10 deletions
+6
-10
src/nano.c
View file @
754aa8ba
...
...
@@ -1998,18 +1998,14 @@ int main(int argc, char **argv)
tcgetattr
(
0
,
&
oldterm
);
#ifdef ENABLE_UTF8
{
/* If the locale set exists and uses UTF-8, we should use
* UTF-8. */
char
*
locale
=
setlocale
(
LC_ALL
,
""
);
if
(
locale
!=
NULL
&&
(
strcmp
(
nl_langinfo
(
CODESET
),
"UTF-8"
)
==
0
))
{
/* If setting the locale is successful and it uses UTF-8, we need
* to use the multibyte functions for text processing. */
if
(
setlocale
(
LC_ALL
,
""
)
!=
NULL
&&
strcmp
(
nl_langinfo
(
CODESET
),
"UTF-8"
)
==
0
)
{
#ifdef USE_SLANG
SLutf8_enable
(
1
);
SLutf8_enable
(
1
);
#endif
utf8_init
();
}
utf8_init
();
}
#else
setlocale
(
LC_ALL
,
""
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help