mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 352775 - The function registerFileEncoding in FileEncodingRegistry
should check default encoding first Change-Id: I33b736103707dfcb3848d1d1671487c7b1995e77
This commit is contained in:
parent
24988efc38
commit
f636cb6bcc
1 changed files with 5 additions and 2 deletions
|
@ -1,12 +1,12 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2010 IBM Corporation and others.
|
||||
* Copyright (c) 2010, 2011 IBM Corporation and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* IBM Rational Software - Initial API and implementation
|
||||
* IBM Corporation - Initial API and implementation
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.cdt.internal.core.indexer;
|
||||
|
@ -41,6 +41,9 @@ public class FileEncodingRegistry implements Serializable {
|
|||
}
|
||||
|
||||
public void registerFileEncoding(String filename, String encoding) {
|
||||
if(defaultEncoding.equals(encoding)){
|
||||
return;
|
||||
}
|
||||
if (fFilePathToEncodingMap != null) {
|
||||
fFilePathToEncodingMap.put(filename, encoding);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue