Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git: "Stage selected ranges" command changes encoding to UTF-8 #1418

Open
ErikSteiner opened this issue Feb 20, 2023 · 5 comments
Open

Git: "Stage selected ranges" command changes encoding to UTF-8 #1418

ErikSteiner opened this issue Feb 20, 2023 · 5 comments
Assignees

Comments

@ErikSteiner
Copy link

Type: Bug

Very similar to the vscode issue 36219.

  1. Create a new project folder and place there an empty file.txt
  2. Open this folder with VSCodium and open the file.txt
  3. Insert two German words. One word in each row, like "Hallo" and "Straße" for street
  4. Do not save it yet, at the bottom right select "Select encoding" by clicking the UTF-8 text and select "Save with Encoding"
  5. Navigate to "Source Control" and click "Initialize Repository"
  6. In the category "Changes" do not stage the file all at once, but select those two lines and make sure, that the encoding is set to "ISO 8859-2". Commit those two additions with an initial commit.
  7. Add another row to the file, with another German word like "Änderungen" (changes) and use the "Stage selected ranges" again. As soon as the word "Änderungen" is staged, the second row with the word "Straße" is also highlighted for a change.

In fact, the worst thing about this is, that with each line staged that contains German umlauts, the words on the left become more and more incorrect. Thus, with each staged word, street becomes straĂe, then straĂeĂe, then straĂeĂeĂeĂe. In some cases, so many cryptic characters are added per German word with umlauts that at some point, VSCodium indicates it can no longer compare the two files. The left side virtually explodes from the characters.

VSCodium version: VSCodium 1.75.1 (c6a9727b801542499d2b59cb7db4224e060fc578, 2023-02-09T22:46:15.410Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Sandboxed: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2208)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 31.75GB (16.25GB free)
Process Argv C:\Users\USER\Projekte\Dev
Screen Reader no
VM 0%
Extensions (15)
Extension Author (truncated) Version
Bookmarks ale 13.0.1
vscode-color-identifiers-mode Mat 1.2.0
rainbow-csv mec 3.3.0
git-graph mhu 1.30.0
theme-monokai-pro-vscode mon 1.2.0
isort ms- 2022.8.0
python ms- 2023.2.0
jupyter ms- 2022.10.110
jupyter-keymap ms- 1.0.0
jupyter-renderers ms- 1.0.12
vscode-jupyter-cell-tags ms- 0.1.6
vscode-jupyter-slideshow ms- 0.1.5
indent-rainbow ode 8.3.1
vbsvscode Ser 1.2.1
markdown-preview-enhanced shd 0.6.7
@ErikSteiner
Copy link
Author

ErikSteiner commented Aug 14, 2023

BUMP
Example

Copy link

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment, and we'll keep it open. If you have any new additional information, please include it with your comment!

@github-actions github-actions bot added the stale label Feb 11, 2024
@ErikSteiner
Copy link
Author

It still affects me. So yes, please leave it open, and better fix it.

@github-actions github-actions bot removed the stale label Feb 23, 2024
Copy link

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment, and we'll keep it open. If you have any new additional information, please include it with your comment!

@github-actions github-actions bot added the stale label Aug 21, 2024
@daiyam daiyam self-assigned this Aug 21, 2024
@daiyam
Copy link
Member

daiyam commented Aug 21, 2024

@ErikSteiner Do you have still the issue?

If yes, then I will make a patch following this comment found in the upstream bug report.

@github-actions github-actions bot removed the stale label Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants