Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 365816
Collapse All | Expand All

(-)miners/org/eclipse/rse/dstore/universal/miners/CommandMiner.java (-3 / +7 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2006, 2010 IBM Corporation and others.
2
 * Copyright (c) 2006, 2011 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 21-26 Link Here
21
 * David McKnight (IBM) - [286671] Dstore shell service interprets < and > sequences - cmd descriptor to identify ability
21
 * David McKnight (IBM) - [286671] Dstore shell service interprets < and > sequences - cmd descriptor to identify ability
22
 * David McKnight   (IBM)     [312415] [dstore] shell service interprets < and > sequences - handle old client/new server case
22
 * David McKnight   (IBM)     [312415] [dstore] shell service interprets < and > sequences - handle old client/new server case
23
 * David McKnight   (IBM)     [320624] [dstore] shell < and > sequence conversion not being applied to thread
23
 * David McKnight   (IBM)     [320624] [dstore] shell < and > sequence conversion not being applied to thread
24
 * Noriaki Takatsu  (IBM)  - [365765] [dstore][multithread]client environment cause harm to singe-process server
24
 *******************************************************************************/
25
 *******************************************************************************/
25
26
26
package org.eclipse.rse.dstore.universal.miners;
27
package org.eclipse.rse.dstore.universal.miners;
Lines 37-42 Link Here
37
import org.eclipse.dstore.core.model.DataElement;
38
import org.eclipse.dstore.core.model.DataElement;
38
import org.eclipse.dstore.core.model.DataStoreAttributes;
39
import org.eclipse.dstore.core.model.DataStoreAttributes;
39
import org.eclipse.dstore.core.model.DataStoreResources;
40
import org.eclipse.dstore.core.model.DataStoreResources;
41
import org.eclipse.dstore.core.server.SystemServiceManager;
40
import org.eclipse.rse.internal.dstore.universal.miners.command.CommandMinerThread;
42
import org.eclipse.rse.internal.dstore.universal.miners.command.CommandMinerThread;
41
import org.eclipse.rse.internal.dstore.universal.miners.command.QueryPathThread;
43
import org.eclipse.rse.internal.dstore.universal.miners.command.QueryPathThread;
42
import org.eclipse.rse.internal.dstore.universal.miners.command.patterns.Patterns;
44
import org.eclipse.rse.internal.dstore.universal.miners.command.patterns.Patterns;
Lines 207-214 Link Here
207
			DataElement encodingArg = getCommandArgument(theElement, 1);
209
			DataElement encodingArg = getCommandArgument(theElement, 1);
208
			if (encodingArg.getType().equals("shell.encoding")) //$NON-NLS-1$
210
			if (encodingArg.getType().equals("shell.encoding")) //$NON-NLS-1$
209
			{
211
			{
210
				// fix for 191599
212
				if (SystemServiceManager.getInstance().getSystemService() == null) {
211
				 System.setProperty("dstore.stdin.encoding",encodingArg.getValue()); //$NON-NLS-1$
213
					// fix for 191599
214
					System.setProperty("dstore.stdin.encoding",encodingArg.getValue());  //$NON-NLS-1$
215
				}
212
			}
216
			}
213
			launchCommand(subject, invocation, status);
217
			launchCommand(subject, invocation, status);
214
		}
218
		}

Return to bug 365816