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 255619 | Differences between
and this patch

Collapse All | Expand All

(-)core/org/eclipse/debug/core/DebugPlugin.java (-9 / +20 lines)
Lines 1267-1285 Link Here
1267
				return ""; //$NON-NLS-1$
1267
				return ""; //$NON-NLS-1$
1268
			}
1268
			}
1269
			StringBuffer buf= new StringBuffer();
1269
			StringBuffer buf= new StringBuffer();
1270
			while (ch > 0 && ch != '"') {
1270
			if (!Platform.getOS().equals(Constants.OS_MACOSX)) {
1271
				if (ch == '\\') {
1271
				while (ch > 0 && ch != '"') {
1272
					ch= getNext();
1272
					if (ch == '\\') {
1273
					if (ch != '"') {           // Only escape double quotes
1273
						ch= getNext();
1274
						buf.append('\\');
1274
						if (ch != '"') {           // Only escape double quotes
1275
					} else {
1276
						if (Platform.getOS().equals(Constants.OS_WIN32)) {
1277
							// @see Bug 26870. Windows requires an extra escape for embedded strings
1278
							buf.append('\\');
1275
							buf.append('\\');
1276
						} else {
1277
							if (Platform.getOS().equals(Constants.OS_WIN32)) {
1278
								// @see Bug 26870. Windows requires an extra escape for embedded strings
1279
								buf.append('\\');
1280
							}
1279
						}
1281
						}
1280
					}
1282
					}
1283
					if (ch > 0) {
1284
						buf.append((char)ch);
1285
						ch= getNext();
1286
					}
1281
				}
1287
				}
1282
				if (ch > 0) {
1288
			} else {
1289
				// @see Bug 255619. Mac OS X requires a slightly different treatment
1290
				while (ch > 0 && ch != '"') {
1291
					if (ch == '\\') {
1292
						ch = getNext();
1293
					}
1283
					buf.append((char)ch);
1294
					buf.append((char)ch);
1284
					ch= getNext();
1295
					ch= getNext();
1285
				}
1296
				}

Return to bug 255619