Proposition 5.12. Let $A \subset B$ be rings, $C$ the integral closure of $A$ in $B$. Let $S$ be a multiplicatively closed subset of $A$. Then $S^{-1}C$ is the integral closure of $S^{-1}A$ in $S^{-1}B$.
Definition: An integral domain is said to be integrally closed if it is integrally closed in its field of fractions.
Let $A$ be an integral domain. Then the following are equivalent:
(i) $A$ is integrally closed;
(ii) $A_{\mathfrak p}$ is integrally closed, for each prime ideal $\mathfrak p$;
(iii) $A_{\mathfrak m}$ is integrally closed, for each maximal ideal $\mathfrak m$.
Proof. Let $K$ be the field of fractions of $A$, let $C$ be the integral closure of $A$ in $K$, and let $f: A \to C$ be the identity mapping of $A$ into $C$. Then $A$ is integrally closed iff $f$ is surjective, and by (5.12) $A_{\mathfrak p}$ (resp. $A_{\mathfrak m}$) is integrally closed iff $f_{\mathfrak p}$ (resp.$f_{\mathfrak m}$) is surjective. Now use (3.9).
I can’t fill following detail in above proof: field of fraction of $A_\mathfrak{p}$ is $K_\mathfrak{p}$. We know $K_\mathfrak{p} = S^{-1}K=S^{-1}(\bar{S}^{-1} A)$ where $S=A-\mathfrak{p}$ and $\bar{S}=A-\{0\}$.