mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-24 00:33:48 +02:00
[350581] [dstore] FileClassifier should default to English
This commit is contained in:
parent
4f22b2d140
commit
9cf86ee217
1 changed files with 9 additions and 2 deletions
|
@ -21,6 +21,7 @@
|
||||||
* Noriaki Takatsu (IBM) - [256724] thread-level security is not established
|
* Noriaki Takatsu (IBM) - [256724] thread-level security is not established
|
||||||
* David McKnight (IBM) - [283613] [dstore] Create a Constants File for all System Properties we support
|
* David McKnight (IBM) - [283613] [dstore] Create a Constants File for all System Properties we support
|
||||||
* David McKnight (IBM) - [153635] [dstore-linux] dangling symbolic links are not classified properly
|
* David McKnight (IBM) - [153635] [dstore-linux] dangling symbolic links are not classified properly
|
||||||
|
* David McKnight (IBM) - [350581] [dstore] FileClassifier should default to English
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.dstore.universal.miners.filesystem;
|
package org.eclipse.rse.internal.dstore.universal.miners.filesystem;
|
||||||
|
@ -718,11 +719,17 @@ public class FileClassifier extends SecuredThread
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
args[2] = "file " + files; //dont quote files to allow shell pattern matching //$NON-NLS-1$
|
args[2] = "file " + files; //dont quote files to allow shell pattern matching //$NON-NLS-1$
|
||||||
|
}
|
||||||
|
|
||||||
|
String[] envVars = null;
|
||||||
|
String classifyWithEnglish = System.getProperty("classify.with.english"); //$NON-NLS-1$
|
||||||
|
if (classifyWithEnglish == null || classifyWithEnglish.equals("true")){ //$NON-NLS-1$
|
||||||
|
String langVar = "LANG=en_US"; // right now only classifying based on English //$NON-NLS-1$
|
||||||
|
envVars = new String[] {langVar};
|
||||||
}
|
}
|
||||||
|
|
||||||
// run command with the working directory being the parent file
|
// run command with the working directory being the parent file
|
||||||
Process theProcess = Runtime.getRuntime().exec(args, null, parentFile);
|
Process theProcess = Runtime.getRuntime().exec(args, envVars, parentFile);
|
||||||
|
|
||||||
BufferedReader reader = null;
|
BufferedReader reader = null;
|
||||||
DataInputStream stream = null;
|
DataInputStream stream = null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue