Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 851897 - app-editors/sublime-text-4_p4126 - Fail applying user encoding
Summary: app-editors/sublime-text-4_p4126 - Fail applying user encoding
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: David Seifert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-14 10:24 UTC by Bogdan
Modified: 2022-12-03 13:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bogdan 2022-06-14 10:24:37 UTC
Sublime does not apply settings from file
  ~/.config/sublime-text/Packages/User/Preferences.sublime-settings

Reproducible: Always

Steps to Reproduce:
1) Fresh install
  $ rm -rf ~/.config/sublime-text
  $ emerge -1 app-editors/sublime-text::gentoo

2) Check default encoding:
> $ grep "fallback_encoding" \
    ~/.config/sublime-text/Packages/Default/Preferences.sublime-settings
> "fallback_encoding": "Western (Windows 1252)",

3) Set preffered encoding for User:
> $ grep "fallback_encoding" \
    ~/.config/sublime-text/Packages/User/Preferences.sublime-settings
> "fallback_encoding": "Cyrillic (Windows 1251)",

4) Set preffered encoding for HTML syntax:
> $ grep "fallback_encoding" \
    ~/.config/sublime-text/Packages/User/HTML.sublime-settings

5) Convert UTF-8 file with Cyrillic strings into WINDOWS-1251 encoding:
> $ iconv -c --from-code utf-8 --to-code windows-1251 \
>     -o test-file.html test-file-cyr.html

6) Open file with Cyrillic strings in Sublime Text:
> $ /usr/bin/subl test-file-cyr.html

7) Check, that Sublime Text program use fallback encoding from file:
> ~/.config/sublime-text/Packages/Default/Preferences.sublime-settings

Actual Results:  
Sublime Text program use fallback encoding from file:
> ~/.config/sublime-text/Packages/Default/Preferences.sublime-settings

Expected Results:  
Sublime Text program MUST use fallback encoding from file:
> ~/.config/sublime-text/Packages/User/Preferences.sublime-settings
Comment 1 Bogdan 2022-06-14 10:26:08 UTC
Steps to Reproduce:

1) Fresh install
>  $ rm -rf ~/.config/sublime-text
>  $ emerge -1 app-editors/sublime-text::gentoo

2) Check default encoding:
> $ grep "fallback_encoding" \
>    ~/.config/sublime-text/Packages/Default/Preferences.sublime-settings
> "fallback_encoding": "Western (Windows 1252)",

3) Set preffered encoding for User:
> $ grep "fallback_encoding" \
>    ~/.config/sublime-text/Packages/User/Preferences.sublime-settings
> "fallback_encoding": "Cyrillic (Windows 1251)",

4) Set preffered encoding for HTML syntax:
> $ grep "fallback_encoding" \
>    ~/.config/sublime-text/Packages/User/HTML.sublime-settings
> "fallback_encoding": "Cyrillic (Windows 1251)",

5) Convert UTF-8 file with Cyrillic strings into WINDOWS-1251 encoding:
> $ iconv -c --from-code utf-8 --to-code windows-1251 \
>     -o test-file.html test-file-cyr.html

6) Open file with Cyrillic strings in Sublime Text:
> $ /usr/bin/subl test-file-cyr.html

7) Check, that Sublime Text program use fallback encoding from
> ~/.config/sublime-text/Packages/Default/Preferences.sublime-settings
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-16 16:03:46 UTC
I think you need to report this upstream.
Comment 3 David Seifert gentoo-dev 2022-12-03 13:08:47 UTC
I can't fix this, so if this is still a problem in 4_p4143, you have to report it upstream.