From 25707206f6c0a3554a503b56e93ed3103788cd70 Mon Sep 17 00:00:00 2001 From: YoonKi Park Date: Fri, 20 Jan 2012 15:55:43 +0900 Subject: [PATCH] [Title] set encoding when reading shellfolder path from regx in case of windows xp Change-Id: I36a56c12dab0ba34237dd30ed44203bd1e487778 --- .../src/com/samsung/tizen/common/properties/InstallPathConfig.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/com.samsung.tizen.common/src/com/samsung/tizen/common/properties/InstallPathConfig.java b/com.samsung.tizen.common/src/com/samsung/tizen/common/properties/InstallPathConfig.java index 01ebd39..bc2c794 100644 --- a/com.samsung.tizen.common/src/com/samsung/tizen/common/properties/InstallPathConfig.java +++ b/com.samsung.tizen.common/src/com/samsung/tizen/common/properties/InstallPathConfig.java @@ -106,9 +106,9 @@ final public class InstallPathConfig { String query = "reg query " + "\"" + node + "\" /v " + key; try { - Process process = Runtime.getRuntime().exec(query); - - br = new BufferedReader(new InputStreamReader(process.getInputStream(), System.getProperty("file.encoding"))); + Process process = Runtime.getRuntime().exec(query); + String encoding = System.getProperty("sun.jnu.encoding"); + br = new BufferedReader(new InputStreamReader(process.getInputStream(), encoding)); String line = null; while((line = br.readLine()) != null) { -- 2.7.4