[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    RFR: 8279328: CssParser uses default charset instead of UTF-8
From:       Michael =?UTF-8?B?U3RyYXXDnw==?= <mstrauss () openjdk ! java ! net>
Date:       2021-12-29 15:44:34
Message-ID: FSZJsNekMsSm9ZpZWMAm3cH6GSUNciqAWWHHNrTbT7c=.97beb40e-4f19-4b62-97de-b2f524b6de9d () github ! com
[Download RAW message or body]

`CssParser.parse(URL)` is specified to assume UTF-8 file encoding, but (implicitly) uses the default charset to read the file, potentially resulting in incorrect interpretation of the file content.

This can be fixed by explicitly specifying the UTF-8 charset for `InputStreamReader`.

-------------

Commit messages:
 - Use UTF-8 charset to parse stylesheets
 - Failing test

Changes: https://git.openjdk.java.net/jfx/pull/705/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jfx&pr=705&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8279328
  Stats: 31 lines in 2 files changed: 30 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jfx/pull/705.diff
  Fetch: git fetch https://git.openjdk.java.net/jfx pull/705/head:pull/705

PR: https://git.openjdk.java.net/jfx/pull/705
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic