Bug 162306 - Writer chooses plain text file direction based on LO locale
Summary: Writer chooses plain text file direction based on LO locale
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.0.0 alpha1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: File-Opening 162305
  Show dependency treegraph
 
Reported: 2024-08-01 22:50 UTC by Eyal Rozenberg
Modified: 2024-08-17 03:16 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2024-08-01 22:50:08 UTC
Suppose you open a plain text file with only LTR text, e.g. the following single line:

The quick brown fox jumped over the lazy dog.

... naturally, you expect the file to be opened in LTR direction. But - the direction is set according to the locale. If you use an LTR locale you'll get an LTR direction, even if the file has not a single char of RTL text.
Comment 1 Dieter 2024-08-16 08:05:53 UTC
(In reply to Eyal Rozenberg from comment #0)
> If you use an LTR locale you'll
> get an LTR direction, even if the file has not a single char of RTL text.

If I understand this sentence correct, I don't see a problem here, or do you mean "even if the file has not a single char of LTR text"?

=> NEEDINFO
Comment 2 Eyal Rozenberg 2024-08-16 13:04:33 UTC
I mistyped. Let me rephrase: 

Suppose you open a plain text file with only LTR text; naturally, you expect the file to be opened in LTR direction. But if you set an RTL locale in LibreOffice, the file will be opened with an RTL direction, even if it has not a single character of RTL text.