Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B08EB200AC8 for ; Tue, 7 Jun 2016 11:22:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AF1C3160A5B; Tue, 7 Jun 2016 09:22:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F11CB160A35 for ; Tue, 7 Jun 2016 11:22:21 +0200 (CEST) Received: (qmail 49034 invoked by uid 500); 7 Jun 2016 09:22:21 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 49017 invoked by uid 99); 7 Jun 2016 09:22:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jun 2016 09:22:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EF30F2C1F5D for ; Tue, 7 Jun 2016 09:22:20 +0000 (UTC) Date: Tue, 7 Jun 2016 09:22:20 +0000 (UTC) From: "Lars W (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (IO-509) FileUtils.readFileToString: null not usable for default encoding MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 07 Jun 2016 09:22:22 -0000 Lars W created IO-509: ------------------------- Summary: FileUtils.readFileToString: null not usable for default encoding Key: IO-509 URL: https://issues.apache.org/jira/browse/IO-509 Project: Commons IO Issue Type: Bug Components: Utilities Affects Versions: 2.5 Reporter: Lars W Since 2.5 FileUtils.readFileToString(File) is deprecated. readFileToString(File, Charset) should be used instead. The javadoc of readFileToString(File, Charset) says that, if the charset is null, the platform default charset will be used. But I cannot use readFileToString(File, null) to get that behaviour, since there also is readFileToString(File, String), so that readFileToString(File, null) is ambiguous. -- This message was sent by Atlassian JIRA (v6.3.4#6332)