aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2014-05-26 14:26:10 +0200
committerJustin M. Keyes <justinkz@gmail.com>2014-05-27 19:58:41 -0400
commit8e3634212dc01b583db557d7b65d8aff01c60019 (patch)
tree30e0e2b9702fa5086a5927d86e35d2c66868c767 /src
parent0e9d2464b46f0226a75c9ca34e553b4fc8dbc86d (diff)
downloadrneovim-8e3634212dc01b583db557d7b65d8aff01c60019.tar.gz
rneovim-8e3634212dc01b583db557d7b65d8aff01c60019.tar.bz2
rneovim-8e3634212dc01b583db557d7b65d8aff01c60019.zip
Fix localization: Fix build: Fix sjis-fixing executable.
Problem: Executable used to fix japanese files with sjis encoding (sjiscorr) fails to compile. Solution: - Add mising includes. - Remove __END_DECLS. - Add removed comments.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/po/sjiscorr.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/nvim/po/sjiscorr.c b/src/nvim/po/sjiscorr.c
index 6976ed8b9e..bce3477b90 100644
--- a/src/nvim/po/sjiscorr.c
+++ b/src/nvim/po/sjiscorr.c
@@ -1,4 +1,11 @@
-__END_DECLS int main(int argc, char **argv)
+// Simplistic program to correct SJIS inside strings.
+// When a trail byte is a backslash it needs to be doubled.
+// Public domain.
+
+#include <stdio.h>
+#include <string.h>
+
+int main(int argc, char **argv)
{
char buffer[BUFSIZ];
char *p;