diff --git a/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java b/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java index 122c72c96..088e0bcae 100644 --- a/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java +++ b/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java @@ -392,4 +392,18 @@ public final class TestBugs extends TestCase { // Good } } + + /** + * Changing text from Ascii to Unicode + */ + public void test49648() throws Exception { + SlideShow ppt = new SlideShow(_slTests.openResourceAsStream("49648.ppt")); + for(Slide slide : ppt.getSlides()) { + for(TextRun run : slide.getTextRuns()) { + String text = run.getRawText(); + text.replace("{txtTot}", "With \u0123\u1234\u5678 unicode"); + run.setRawText(text); + } + } + } } diff --git a/test-data/slideshow/49648.ppt b/test-data/slideshow/49648.ppt new file mode 100644 index 000000000..841b904a1 Binary files /dev/null and b/test-data/slideshow/49648.ppt differ