Skip to content

Whole folder search does not seem to use preferred encoding #170448

@adellieux

Description

@adellieux

Type: Bug

Hello,

I'm french, and open Microsoft Visual FoxPro source code files with VS Code

My user settings contain the following :
"files.associations": {
".sc2": "foxpro",
"
.vc2": "foxpro",
".pj2": "foxpro",
"
.prg": "foxpro",
"*.spr": "foxpro"
},
"[foxpro]": {
"files.encoding": "windows1252"
},

When i use the whole folder search (Ctrl+Shift+F), accented characters are not found in foxpro files, as if the search opened them only using UTF-8 encoding.

If i remove accented parts (beginning or end of the words), the search finds those parts and display the found files in the list.

Found a closed issue here that seem to be similar : #155374

This is a serious issue that prevent a full staff to plainly use VS Code, as we do not have this problem using folder search in SublimeText or Notepad++

VS Code version: Code 1.74.2 (e8a3071, 2022-12-20T10:29:14.590Z)
OS version: Windows_NT x64 10.0.19044
Modes:
Sandboxed: No

System Info
Item Value
CPUs Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 x 1800)
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) 15.86GB (6.07GB free)
Process Argv --crash-reporter-id befdaa96-7b8f-43b4-bc2a-cf41bf65ffe2
Screen Reader no
VM 0%
Extensions (17)
Extension Author (truncated) Version
pascal-formatter ale 2.7.0
pascal-language-basics Ans 0.1.10
file-icons fil 1.0.29
material-color guo 1.3.4
vscode-pretty-compact Kyl 1.0.0
xml-format mik 1.1.3
csharp ms- 1.25.2
data-workspace-vscode ms- 0.3.0
mssql ms- 1.16.0
sql-bindings-vscode ms- 0.3.0
sql-database-projects-vscode ms- 0.19.0
powershell ms- 2022.12.1
foxpro new 1.4.10
material-icon-theme PKi 4.23.1
material-product-icons PKi 1.4.1
vscode-thunder-client ran 2.2.4
t4-support zbe 0.6.0

(7 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vstes627cf:30244335
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
pyindex848:30577860
nodejswelcome1cf:30587006
3biah626:30602489
iaj6b796:30613358
f6dab269:30613381
fim-prod:30623723

Metadata

Metadata

Assignees

Labels

*duplicateIssue identified as a duplicate of another issue(s)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions