From 65a6cc78ea8d1397df8fd68fb8379d54ce8d63b9 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sun, 8 Apr 2018 20:06:28 +0000
Subject: newunicodechar (8apr18)

git-svn-id: svn://tug.org/texlive/trunk@47382 c570f23f-e606-0410-a88d-b1316a301751
---
 .../tex/latex/newunicodechar/newunicodechar.sty      | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/newunicodechar/newunicodechar.sty')

diff --git a/Master/texmf-dist/tex/latex/newunicodechar/newunicodechar.sty b/Master/texmf-dist/tex/latex/newunicodechar/newunicodechar.sty
index 6a9e4f7cf32..03f6c4be8b4 100644
--- a/Master/texmf-dist/tex/latex/newunicodechar/newunicodechar.sty
+++ b/Master/texmf-dist/tex/latex/newunicodechar/newunicodechar.sty
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright (C) 2011 by Enrico Gregorio
+%% Copyright (C) 2011-2018 by Enrico Gregorio
 %% <Enrico dot Gregorio at univr dot it>
 %% -------------------------------------------------------
 %% 
@@ -29,9 +29,9 @@
 %%   newunicodechar.ins
 %% and the derived file newunicodechar.sty.
 %% 
-\NeedsTeXFormat{LaTeX2e}[2008/04/05]
+\NeedsTeXFormat{LaTeX2e}[2018/04/01]
 \ProvidesPackage{newunicodechar}
-    [2012/11/12 v1.1 Defining Unicode characters]
+    [2018/04/08 v1.2 Defining Unicode characters]
 \@ifundefined{eTeXversion}
   {\PackageError{newunicodechar}{LaTeX engine too old, aborting}
    {Please upgrade your TeX system}\@@end}{}
@@ -77,14 +77,14 @@
 \expandafter\endinput
 \fi % End of code for Unicode engines
 \def\nuc@stop{\PackageWarningNoLine{newunicodechar}
-  {This package won't work without loading\MessageBreak
-   `inputenc' or `inputenx' with the `utf8' option}%
+  {This package only works if the document\MessageBreak
+   encoding is `utf8'}%
   \let\newunicodechar\@gobbletwo\endinput}
-\@ifpackageloaded{inputenx}
-  {\def\nuc@tempa{inputenx}}
-  {\@ifpackageloaded{inputenc}{\def\nuc@tempa{inputenc}}{\nuc@stop}}
-\@ifpackagewith{\nuc@tempa}{utf8}{}{\nuc@stop}
-\@ifpackagewith{\nuc@tempa}{utf8x}{\nuc@stop}{}
+\edef\@tempa{\detokenize{utf8}}
+\edef\@tempb{\detokenize\expandafter{\inputencodingname}}
+\ifx\@tempb\@tempa\else
+  \nuc@stop
+\fi
 \def\newunicodechar#1#2{%
   \@tempswafalse
   \edef\nuc@tempa{\detokenize{#1}}%
-- 
cgit v1.2.3

