Are Text Encoding and Line Endings broken ?

I would like to understand what the “Text Encoding” and “Line Endings” settings in the Identity Inspector of a file actually represent. Both settings are configurable in Xcode’s preferences.

It seems that both of them are broken. I have a file that uses CRLF line endings and is encoded in a Japanese code page, but Xcode displays “No Explicit Encoding” and “No Explicit Line Endings”.

I tried saving the file after changing these settings in Xcode, but nothing changes for the file in question.

I thought maybe these settings only apply to source files in C++, C, or Objective-C projects—or even assembler—but there’s no impact on other languages either.

Are “Text Encoding” and “Line Endings” simply broken? If not, when and how are they actually used?

Are Text Encoding and Line Endings broken ?
 
 
Q