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

Compilation failed on windows + MinGW when configured with '--enable-multibyte=' sjis or euc-jp #103

Closed
ghost opened this issue Oct 14, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 14, 2015

on 0.9.5 pre1.
because of some typo...
[src/system.c]

diff --git a/src/system.c b/src/system.c
index 7069601..7bda1d1 100644
--- a/src/system.c
+++ b/src/system.c
@@ -2307,13 +2307,13 @@ void Scm_SetEnv(const char *name, const char *value, int overwrite)

     ScmObj sname = Scm_MakeString(name, -1, -1, SCM_STRING_COPYING);

-    int result = 0;
-    chat *prev_mem = NULL;
+    int r = 0;
+    char *prev_mem = NULL;

     (void)SCM_INTERNAL_MUTEX_LOCK(env_mutex);
     if (overwrite || getenv(name) == NULL) {
-        result = putenv(nameval);
-        if (result >= 0) {
+        r = putenv(nameval);
+        if (r >= 0) {
@ghost ghost changed the title 0Compilation failed on windows + MinGW when configured with Compilation failed on windows + MinGW when configured with '--enable-multibyte=' sjis or euc-jp Oct 14, 2015
@shirok
Copy link
Owner

shirok commented Oct 15, 2015

Ah, s/chat/char/. Thanks.

@shirok shirok closed this as completed Oct 15, 2015
@Hamayama
Copy link
Contributor

variable name mismatch?
[src/system.c]
line 2310 : int result = 0;
line 2327 : if (r < 0) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants