Bug 98467 [WorkbenchLauncher] [Preferences] Workspace path with comma
If a workspace is opened which has a comma in the path (eg "C:\docs\clients\surname, firstname"), when eclipse is closed then re-opened, the workspace does not open correctly. It instead creates a new folder of "C:\docs\clients\surname" and creates a new workspace there. Noticed that recent workspaces are kept in eclipse\configuration\.settings\org.eclipse.ui.ide.prefs and that the list is comma separated. Reccommend either making the delimiter a character not usable in filenames/paths (eg. pipe character '|') or enclosing paths in quote marks.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ChooseWorkspaceData.java
selection = dir;
    }
    /**
     * Toggle value of the showDialog persistent setting.
     */
    public void toggleShowDialog() {
        showDialog = !showDialog;
    }
    /**
	 * Update the persistent store. Call this function after the currently
	 * selected value has been found to be ok.
	 */
	public void writePersistedData() {
		
		Preferences node = new ConfigurationScope().getNode(IDEWorkbenchPlugin.IDE_WORKBENCH);
		
		node.putBoolean(
				IDE.Preferences.SHOW_WORKSPACE_SELECTION_DIALOG,
				showDialog);
		
		node.putInt(IDE.Preferences.MAX_RECENT_WORKSPACES,
				recentWorkspaces.length);
		
		if (selection != null) {
			String oldEntry = recentWorkspaces[0];
			recentWorkspaces[0] = selection;
			for (int i = 1; i < recentWorkspaces.length && oldEntry != null; ++i) {
				if (selection.equals(oldEntry)) {
					break;
				}