Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

Commit

Permalink
convert uv_version_string to proper encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
jBarz committed Nov 30, 2016
1 parent d9d1a01 commit 1a781fb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2809,9 +2809,16 @@ void SetupProcessObject(Environment* env,
READONLY_PROPERTY(versions,
"\x76\x38",
OneByteString(env->isolate(), V8::GetVersion()));

char uv_version[strlen(uv_version_string())];
memcpy(&uv_version[0], uv_version_string(), sizeof(uv_version));
#ifdef __MVS__
__e2a_s(&uv_version[0]);
#endif
READONLY_PROPERTY(versions,
"\x75\x76",
OneByteString(env->isolate(), uv_version_string()));
OneByteString(env->isolate(), uv_version));

READONLY_PROPERTY(versions,
"\x7a\x6c\x69\x62",
FIXED_ONE_BYTE_STRING(env->isolate(), ZLIB_VERSION));
Expand Down

0 comments on commit 1a781fb

Please sign in to comment.