Apparently it is important that the support is defined as the closure of $\{f \neq 0\}$. Because of that condition globalization is allowed as the exercise below indicates. However, I have no idea why it is so important that the support is defined as the closure of $\{f \neq 0\}$?
The exercise:
Let (X, $\mathcal{T}$) be a topological space, U $\subset$ X open and $\eta$ $\in$ C(X) , (C(X) is the space of continuous functions on X) supported in U. Then, for any continuous map $g:U \rightarrow \mathbb{R} $,
$(\eta \cdot g): X \rightarrow \mathbb{R}$,
$(\eta \cdot g)(x) = \eta (x)g(x)$ if $x \in U$ and
$(\eta \cdot g)(x) = 0$ if $x \notin U$
is continous. Show that this statement fails if we only assume that $\{f \neq 0\} \subset U$.
I have been able to show that the map $g : U \rightarrow \mathbb{R} $ is continuous. However, I still don't understand the importance of the closure and why the map otherwise isn't continuous.
Can anyone help me?