Unit 02 · lesson

Prepare a UTF-8 Locale

ROS 2's Jazzy installation guide tells Ubuntu learners to make sure the system has a locale that supports UTF-8.

Do not change anything yet.

First inspect:

locale

Look at values such as LANG and LC_ALL.

If UTF-8 is already configured

Good. Record the evidence and move on.

You do not earn extra points for changing a working configuration.

If the environment needs the documented locale setup

The pinned Jazzy documentation uses:

sudo apt update && sudo apt install locales
sudo locale-gen en_US en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
export LANG=en_US.UTF-8

Then verify again:

locale

Understand the boundary

locale is an Ubuntu/Linux environment concern. It is not a ROS node, package, topic, or workspace.

That distinction matters because later you will debug several layers at once:

operating system
shell environment
ROS installation
workspace overlay
running graph

A problem in one layer should not automatically trigger changes in all five.

Evidence checkpoint

Record:

Before:
LANG=
LC_ALL=

Action taken:

After:
LANG=
LC_ALL=

Why I did or did not change the locale:

If your reason is only "the instructions said so," improve it. Point to the evidence you inspected.