Skip to content

Commit

Permalink
revert "zero conversion" workaround
Browse files Browse the repository at this point in the history
If one-to-one charset conversion table is setup in configuration use it
instead of zero conversion algorithm first.
  • Loading branch information
vitaliy-aksyonov committed Nov 7, 2023
1 parent f7be1e9 commit a632343
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion golded.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%define reldate 20231030
%define reldate 20231106
%define reltype C
# may be one of: C (current), R (release), S (stable)

Expand Down
11 changes: 6 additions & 5 deletions golded3/geline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3407,11 +3407,6 @@ int LoadCharset(int index)
int LoadCharset(const char* imp, const char* exp)
{

if (IsZeroConversion(imp, exp))
{
return LoadCharset(-1);
}

int n;

#ifdef HAS_ICONV
Expand Down Expand Up @@ -3452,6 +3447,12 @@ int LoadCharset(const char* imp, const char* exp)
throw_release(CharTable);
ChsTP = NULL;
current_table = -1;

if (IsZeroConversion(imp, exp))
{
return LoadCharset(-1);
}

return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion srcdate.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#ifndef __SRCDATE__
#define __SRCDATE__ "20231030"
#define __SRCDATE__ "20231106"
#endif

0 comments on commit a632343

Please sign in to comment.