In the following theorems:
- Theorem. Let $(X,\mathcal{F},\mu)$ be a measure space and $1\le p\le\infty$. For each $f\in L^p(\mu)$ and $\epsilon>0$ there exists a simple function $f_s$ such that $|f_s|\le|f|$ and $||f-f_s||_p<\epsilon$. Moreover, if $p<\infty$, then $f_s$ may be chosen to vanish outside a set of finite measure.
- Theorem. Let $1\le p<\infty$, $f\in L^p(\lambda^d)$, and $\epsilon>0$. Then there exists a continuous function $g$ vanishing outside a bouded interval such that $||f-g||_p<\epsilon$.
I do not understand why the assertion in $(1)$ fails for the case $p=\infty$, and also that in $(2)$ does not hold for $p=\infty$.